AbstractCheck class Null safety

Represents a check executed on a Command.

All checks must succeed in order for a Command to be executed.

Implementers

Constructors

AbstractCheck(String name)
Create a new AbstractCheck with a given name.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
name String
The name of the check
final
permissions Future<Iterable<CommandPermissionBuilderAbstract>>
An Iterable of permission overrides that will be used on slash commands using this check.
read-only
postCallHooks Iterable<void Function(Context)>
An Iterable of post-call hooks that will be called when a command this check is on emits to Command.onPostCall. [...]
read-only
preCallHooks Iterable<void Function(Context)>
An Iterable of pre-call hooks that will be called when a command this check is on emits to Command.onPreCall. [...]
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

check(Context context) FutureOr<bool>
The method called to validate this check. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited