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

@ -54,7 +54,7 @@ namespace PluralKit.Bot
guildCount++;
foreach (var channel in _cache.GetGuildChannels(guild.Id))
{
if (channel.Type == Channel.ChannelType.GuildText)
if (DiscordUtils.IsValidGuildChannel(channel))
channelCount++;
}
}