ICommander class abstract
- Implemented types
Constructors
Properties
-
commandEntities
→ List<
ICommandEntity> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getPrefixForMessage(
IMessage message) → FutureOr< String?> -
Resolves prefix for given
message
. Returns null if there is no prefix for givenmessage
which means command wouldn't execute in given context. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerCommand(
String commandName, CommandHandlerFunction commandHandler, {PassHandlerFunction? beforeHandler, AfterHandlerFunction? afterHandler}) → void -
Registers command with given
commandName
. Allows to specify command specific before and after command execution callbacks -
registerCommandEntity(
ICommandEntity entity) → void -
Registers
CommandEntity
within context of this instance. Throws error if there is command with same name as provided.inherited -
registerCommandGroup(
BasicCommandGroup commandGroup) → void -
Registers command as implemented
CommandEntity
class -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
INyxxWebsocket client, PrefixHandlerFunction prefixHandler, {PassHandlerFunction? beforeCommandHandler, AfterHandlerFunction? afterCommandHandler, LoggerHandlerFunction? loggerHandlerFunction, CommandExecutionError? commandExecutionError}) → ICommander