Command
This page goes over about the Command object.
Last updated
This page goes over about the Command object.
Last updated
unregister(): Undefined
Unregisters the command.
getName(): String
Returns the command name.
getDescription(): String
Returns the command description.
handle(type, handler): Undefined
type
String
The type of event to handle.
handler
function (args: String[]): Undefined
Callback function.
Adds a handler. The only supported callback for commands is onExecute
.