From b83bf2a622ecfb667cc89909ebae9180ed5ac117 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 16 Mar 2023 20:27:59 -0400 Subject: handle role mentions --- src/notifications/notifications.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/notifications/notifications.cpp') diff --git a/src/notifications/notifications.cpp b/src/notifications/notifications.cpp index a962765..fc7a2d6 100644 --- a/src/notifications/notifications.cpp +++ b/src/notifications/notifications.cpp @@ -22,7 +22,7 @@ bool CheckGuildMessage(const Message &message) { case DefaultNotificationLevel::ALL_MESSAGES: return true; case DefaultNotificationLevel::ONLY_MENTIONS: - return message.DoesMentionEveryoneOrUser(discord.GetUserData().ID); + return message.DoesMention(discord.GetUserData().ID); default: return false; } @@ -78,7 +78,7 @@ bool CheckGuildMessage(const Message &message) { case NotificationLevel::ALL_MESSAGES: return true; case NotificationLevel::ONLY_MENTIONS: - return message.DoesMentionEveryoneOrUser(discord.GetUserData().ID); + return message.DoesMention(discord.GetUserData().ID); case NotificationLevel::NO_MESSAGES: return false; default: -- cgit v1.2.3