mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-06 20:15:19 +03:00
Merge branch 'master' into voice
This commit is contained in:
@@ -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