handle role mentions

This commit is contained in:
ouwou
2023-03-16 20:27:59 -04:00
parent 0e1e15eaeb
commit b83bf2a622
6 changed files with 68 additions and 5 deletions

View File

@@ -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;