summaryrefslogtreecommitdiff
path: root/src/notifications/notifications.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-03-16 20:27:59 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2023-03-16 20:27:59 -0400
commitb83bf2a622ecfb667cc89909ebae9180ed5ac117 (patch)
tree5e4ec1fc115f403bb61e57688eb79235d007a8de /src/notifications/notifications.cpp
parent0e1e15eaeb662ae0f078428af84f3720d48a5b24 (diff)
downloadabaddon-portaudio-b83bf2a622ecfb667cc89909ebae9180ed5ac117.tar.gz
abaddon-portaudio-b83bf2a622ecfb667cc89909ebae9180ed5ac117.zip
handle role mentions
Diffstat (limited to 'src/notifications/notifications.cpp')
-rw-r--r--src/notifications/notifications.cpp4
1 files changed, 2 insertions, 2 deletions
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: