mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
fix @everyone not being considered a mention
This commit is contained in:
1 parent
ba9d9997d4
commit
0b66324680
1 file changed
+1
@@ -265,6 +265,7 @@ bool Message::IsEdited() const {
|
||||
}
|
||||
|
||||
bool Message::DoesMention(Snowflake id) const noexcept {
|
||||
if (DoesMentionEveryone) return true;
|
||||
return std::any_of(Mentions.begin(), Mentions.end(), [id](const UserData &user) {
|
||||
return user.ID == id;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user