From afd8983abe5bd50f64e8791ce1ddc64fc79ec067 Mon Sep 17 00:00:00 2001 From: spiral Date: Thu, 8 Jul 2021 12:45:59 -0400 Subject: [PATCH] fix the rest of the conditionals --- PluralKit.Bot/Handlers/MessageEdited.cs | 2 +- PluralKit.Bot/Handlers/ReactionAdded.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PluralKit.Bot/Handlers/MessageEdited.cs b/PluralKit.Bot/Handlers/MessageEdited.cs index 22fe43f0..e1afe47d 100644 --- a/PluralKit.Bot/Handlers/MessageEdited.cs +++ b/PluralKit.Bot/Handlers/MessageEdited.cs @@ -52,7 +52,7 @@ namespace PluralKit.Bot return; var channel = _cache.GetChannel(evt.ChannelId); - if (DiscordUtils.IsValidGuildChannel(channel)) + if (!DiscordUtils.IsValidGuildChannel(channel)) return; var guild = _cache.GetGuild(channel.GuildId!.Value); var lastMessage = _lastMessageCache.GetLastMessage(evt.ChannelId); diff --git a/PluralKit.Bot/Handlers/ReactionAdded.cs b/PluralKit.Bot/Handlers/ReactionAdded.cs index 855238cf..e395577c 100644 --- a/PluralKit.Bot/Handlers/ReactionAdded.cs +++ b/PluralKit.Bot/Handlers/ReactionAdded.cs @@ -67,7 +67,7 @@ namespace PluralKit.Bot } // Proxied messages only exist in guild text channels, so skip checking if we're elsewhere - if (DiscordUtils.IsValidGuildChannel(channel)) return; + if (!DiscordUtils.IsValidGuildChannel(channel)) return; // Ignore reactions from bots (we can't DM them anyway) if (user.Bot) return;