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