UserCommandCheck class Null safety

A check that succeeds if the command being invoked is a UserCommand.

This is generally used in combination with Check.any and/or Check.deny to only apply another check to UserCommands, while still registering this check to CommandsPlugin.

You might also be interested in:



UserCommandCheck([String? name])
Create a new UserCommandCheck.


allowsDm FutureOr<bool>
Whether this check will allow commands to be executed in DM channels.
final, inherited
hashCode int
The hash code for this object.
read-only, inherited
name String
The name of this check.
final, inherited
permissions Future<Iterable<CommandPermissionBuilderAbstract>>
The set of Discord Slash Command Permissions this check represents.
@Deprecated('Use allowsDm and requiredPermissions instead'), final, inherited
postCallHooks Iterable<void Function(IContext context)>
An iterable of callbacks executed after a command is executed.
read-only, inherited
preCallHooks Iterable<void Function(IContext context)>
An iterable of callbacks executed before a command is executed but after all the checks for that command have succeeded.
read-only, inherited
requiredPermissions FutureOr<int?>
The permissions required from members to pass this check.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


check(IContext context) FutureOr<bool>
Validate context against this check.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.