mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +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
|
|
@ -163,7 +163,7 @@ namespace PluralKit.Bot
|
|||
if (!ctx.Cache.TryGetChannel(id, out var channel))
|
||||
return Task.FromResult<Channel>(null);
|
||||
|
||||
if (!(channel.Type == Channel.ChannelType.GuildText || channel.Type == Channel.ChannelType.GuildNews))
|
||||
if (!DiscordUtils.IsValidGuildChannel(channel))
|
||||
return Task.FromResult<Channel>(null);
|
||||
|
||||
ctx.PopArgument();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue