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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user