ICommander class Null safety

Implemented types

Constructors

ICommander()

Properties

commandEntities List<ICommandEntity>
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getPrefixForMessage(IMessage message) FutureOr<String?>
Resolves prefix for given message. Returns null if there is no prefix for given message which means command wouldn't execute in given context.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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