GuildCheck.all constructor
- {String? name}
Create a GuildCheck that succeeds if the context originated in a guild.
You might also be interested in:
- GuildCheck.none, for checking that a context originated outside a guild.
Implementation
GuildCheck.all({String? name})
: guildIds = [null],
super(
(context) => context.guild != null,
name: name ?? 'Guild Check on <any>',
allowsDm: false,
);