Fix MatchChannel for announcement channels
This commit is contained in:
parent
a61e2a9815
commit
e1f68197e5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user