fix the rest of the conditionals

This commit is contained in:
spiral 2021-07-08 12:45:59 -04:00
parent a8e6a53404
commit afd8983abe
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ namespace PluralKit.Bot
return; return;
var channel = _cache.GetChannel(evt.ChannelId); var channel = _cache.GetChannel(evt.ChannelId);
if (DiscordUtils.IsValidGuildChannel(channel)) if (!DiscordUtils.IsValidGuildChannel(channel))
return; return;
var guild = _cache.GetGuild(channel.GuildId!.Value); var guild = _cache.GetGuild(channel.GuildId!.Value);
var lastMessage = _lastMessageCache.GetLastMessage(evt.ChannelId); var lastMessage = _lastMessageCache.GetLastMessage(evt.ChannelId);

View File

@ -67,7 +67,7 @@ namespace PluralKit.Bot
} }
// Proxied messages only exist in guild text channels, so skip checking if we're elsewhere // 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) // Ignore reactions from bots (we can't DM them anyway)
if (user.Bot) return; if (user.Bot) return;