mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 22:37:54 +00:00
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:
parent
dd020d8aa8
commit
e620e30c10
6 changed files with 9 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue