Command<T extends CommandContext> class abstract

An entity capable of being invoked by users.

You might also be interested in:

Implemented types
Implementers

Constructors

Command()

Properties

checks Iterable<AbstractCheck>
The checks that should be applied to this entity.
no setterinherited
execute Function
The function called to execute this command.
no setter
hashCode int
The hash code for this object.
no setterinherited
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.
no setterinherited
name String
The name of this child.
no setterinherited
onPostCall Stream<T>
A stream that emits contexts after the command callback is executed.
no setterinherited
onPreCall Stream<T>
A stream that emits contexts before the command callback is executed.
no setterinherited
options CommandOptions
The options to use for this entity.
no setterinherited
parent CommandGroup<CommandContext>?
The parent of this child.
getter/setter pairinherited
resolvedOptions CommandOptions
Get the resolved options for this child.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

check(AbstractCheck check) → void
Add a check to this entity.
inherited
invoke(T context) Future<void>
Parse arguments, verify checks, call execute and handle call hooks.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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