allowedChannel
suspend fun CheckContext<ChatInputCommandInteractionCreateEvent>.allowedChannel(allowed: List<Snowflake>, banned: List<Snowflake>)
Check ensuring that a command was sent within an allowed channel, or not within a banned one.
Passes when:
Command doesn't happen in a channel
Command happens in a channel that can't be in a guild (eg, DMs)
Command happens in an allowed channel
If there are no allowed channels, command doesn't happen in a banned channel
Fails when:
If there are allowed channels, command doesn't happen in an allowed channel
Command happens in a banned channel
Parameters
allowed
List of allowed channel IDs
banned
List of banned channel IDs