summaryrefslogtreecommitdiff
path: root/src/discord/message.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/discord/message.hpp')
-rw-r--r--src/discord/message.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/discord/message.hpp b/src/discord/message.hpp
index 4e332b6..df2cb38 100644
--- a/src/discord/message.hpp
+++ b/src/discord/message.hpp
@@ -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;
@@ -212,6 +212,7 @@ struct Message {
[[nodiscard]] bool IsDeleted() const;
[[nodiscard]] bool IsEdited() const;
+ [[nodiscard]] bool DoesMentionEveryoneOrUser(Snowflake id) const noexcept;
[[nodiscard]] bool DoesMention(Snowflake id) const noexcept;
private: