mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 08:40:11 +00:00
fix the rest of the conditionals
This commit is contained in:
parent
a8e6a53404
commit
afd8983abe
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue