From 0e1e15eaeb662ae0f078428af84f3720d48a5b24 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 16 Mar 2023 02:07:48 -0400 Subject: use built-in Is*Muted (untested) --- src/notifications/notifications.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/notifications') 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 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; } } -- cgit v1.2.3