mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
basic channel mentions count indicator
This commit is contained in:
1 parent
511fb445d1
commit
0b0135268e
9 files changed
+63
-17
No files matched your search
@@ -263,3 +263,9 @@ bool Message::IsDeleted() const {
|
||||
bool Message::IsEdited() const {
|
||||
return m_edited;
|
||||
}
|
||||
|
||||
bool Message::DoesMention(Snowflake id) const noexcept {
|
||||
return std::any_of(Mentions.begin(), Mentions.end(), [id](const UserData &user) {
|
||||
return user.ID == id;
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user