ICommand<T extends IContext> class
Null safety
An entity capable of being invoked by users.
You might also be interested in:
- ChatCommand, MessageCommand and UserCommand, the three types of commands nyxx_commands supports.
- Implemented types
- Implementers
Constructors
- ICommand()
Properties
-
checks
→ Iterable<
AbstractCheck> -
The checks that should be applied to this entity.
read-onlyinherited
- execute → Function
-
The function called to execute this command.
read-only
- hashCode → int
-
The hash code for this object.
read-onlyinherited
-
localizedNames
→ Map<
Locale, String> ? -
The localized names of this child.
Since you cannot add descriptions to UserCommand and MessageCommand, can't set localized descriptions too.
read-onlyinherited
- name → String
-
The name of this child.
read-onlyinherited
-
onPostCall
→ Stream<
T> -
A stream that emits contexts after the command callback is executed.
read-onlyinherited
-
onPreCall
→ Stream<
T> -
A stream that emits contexts before the command callback is executed.
read-onlyinherited
- options → CommandOptions
-
The options to use for this entity.
read-onlyinherited
-
parent
↔ ICommandGroup<
IContext> ? -
The parent of this child.
read / writeinherited
- resolvedOptions → CommandOptions
-
Get the resolvec options for this child.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
check(
AbstractCheck check) → void -
Add a check to this entity.
inherited
-
invoke(
T context) → void - Parse arguments, verify checks, call execute and handle call hooks.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited