mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-27 16:16:35 +03:00
handle role mentions
This commit is contained in:
@@ -183,7 +183,7 @@ struct Message {
|
||||
bool IsTTS;
|
||||
bool DoesMentionEveryone;
|
||||
std::vector<UserData> Mentions; // full user accessible
|
||||
// std::vector<RoleData> MentionRoles;
|
||||
std::vector<Snowflake> MentionRoles;
|
||||
// std::optional<std::vector<ChannelMentionData>> MentionChannels;
|
||||
std::vector<AttachmentData> Attachments;
|
||||
std::vector<EmbedData> Embeds;
|
||||
@@ -213,6 +213,7 @@ struct Message {
|
||||
[[nodiscard]] bool IsEdited() const;
|
||||
|
||||
[[nodiscard]] bool DoesMentionEveryoneOrUser(Snowflake id) const noexcept;
|
||||
[[nodiscard]] bool DoesMention(Snowflake id) const noexcept;
|
||||
|
||||
private:
|
||||
bool m_deleted = false;
|
||||
|
||||
Reference in New Issue
Block a user