fix the rest of the conditionals
This commit is contained in:
parent
a8e6a53404
commit
afd8983abe
@ -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);
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user