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:
spiral 2021-07-08 09:17:35 -04:00
parent dd020d8aa8
commit e620e30c10
No known key found for this signature in database
GPG key ID: A6059F0CA0E1BD31
6 changed files with 9 additions and 6 deletions

View file

@ -192,5 +192,8 @@ namespace PluralKit.Bot
var neededPermissions = PermissionSet.AddReactions | PermissionSet.ReadMessageHistory;
return ((ctx.BotPermissions & neededPermissions) == neededPermissions);
}
public static bool IsValidGuildChannel(Channel channel) =>
channel.Type == Channel.ChannelType.GuildText || channel.Type == Channel.ChannelType.GuildNews;
}
}