fix @everyone not being considered a mention

This commit is contained in:
ouwou
2023-03-01 01:24:50 -05:00
parent ba9d9997d4
commit 0b66324680

View File

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