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