diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-03-16 02:07:48 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-03-16 02:07:48 -0400 |
commit | 0e1e15eaeb662ae0f078428af84f3720d48a5b24 (patch) | |
tree | 4feeb4d5a6af6f3663ace43e7f55b4eb0fd3beba /src | |
parent | 358f68d2679640d502d0a13b1d09ee2b3490b4e1 (diff) | |
download | abaddon-portaudio-0e1e15eaeb662ae0f078428af84f3720d48a5b24.tar.gz abaddon-portaudio-0e1e15eaeb662ae0f078428af84f3720d48a5b24.zip |
use built-in Is*Muted (untested)
Diffstat (limited to 'src')
-rw-r--r-- | src/notifications/notifications.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/notifications/notifications.cpp b/src/notifications/notifications.cpp index cda7bb4..a962765 100644 --- a/src/notifications/notifications.cpp +++ b/src/notifications/notifications.cpp @@ -28,7 +28,7 @@ bool CheckGuildMessage(const Message &message) { } } return false; - } else if (guild_settings->Muted) { + } else if (discord.IsGuildMuted(*message.GuildID)) { // if there are guild settings and the guild is muted then dont notify return false; } @@ -38,7 +38,7 @@ bool CheckGuildMessage(const Message &message) { std::optional<UserGuildSettingsChannelOverride> category_settings; if (channel.has_value() && channel->ParentID.has_value()) { category_settings = guild_settings->GetOverride(*channel->ParentID); - if (category_settings.has_value() && category_settings->Muted) { + if (discord.IsChannelMuted(*channel->ParentID)) { return false; } } |