Fix MatchChannel for announcement channels

This commit is contained in:
Ske 2020-12-04 02:11:50 +01:00
parent a61e2a9815
commit e1f68197e5

View File

@ -159,7 +159,7 @@ namespace PluralKit.Bot
return null;
var channel = await ctx.Shard.GetChannel(id);
if (channel == null || channel.Type != ChannelType.Text) return null;
if (channel == null || !(channel.Type == ChannelType.Text || channel.Type == ChannelType.News)) return null;
ctx.PopArgument();
return channel;