From e1f68197e5a6352198f5dff170e0d21b6c4e9b9d Mon Sep 17 00:00:00 2001 From: Ske Date: Fri, 4 Dec 2020 02:11:50 +0100 Subject: [PATCH] Fix MatchChannel for announcement channels --- PluralKit.Bot/CommandSystem/ContextEntityArgumentsExt.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/CommandSystem/ContextEntityArgumentsExt.cs b/PluralKit.Bot/CommandSystem/ContextEntityArgumentsExt.cs index 08190b60..32dd11c0 100644 --- a/PluralKit.Bot/CommandSystem/ContextEntityArgumentsExt.cs +++ b/PluralKit.Bot/CommandSystem/ContextEntityArgumentsExt.cs @@ -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;