mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 14:57:54 +00:00
Fix channel checks missing GuildNews
The log channel / logclean checks are left as-is; hopefully nobody is using an announcements channel for their logs?
This commit is contained in:
parent
dd020d8aa8
commit
e620e30c10
6 changed files with 9 additions and 6 deletions
|
|
@ -52,7 +52,7 @@ namespace PluralKit.Bot
|
|||
return;
|
||||
|
||||
var channel = _cache.GetChannel(evt.ChannelId);
|
||||
if (channel.Type != Channel.ChannelType.GuildText)
|
||||
if (DiscordUtils.IsValidGuildChannel(channel))
|
||||
return;
|
||||
var guild = _cache.GetGuild(channel.GuildId!.Value);
|
||||
var lastMessage = _lastMessageCache.GetLastMessage(evt.ChannelId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue