Extends
Properties
.groups: string[]
Methods
.findByNameOrAlias(text: string) → Command
.registerExternal(client: Client, command: Command) → void
Register an external command and add it to the <Client>.commands
collection
, erroring on duplicate
names and aliases. External commands will be preserved when the
reload
command is called.
Note: This is intended for Plugins to use to register external commands with the Client instance. Under normal circumstances commands should be added by placing them in the directory passed to the
commandsDir
YAMDBF Client option
Parameters:
Name | Type | Description |
---|---|---|
client |
|
YAMDBF Client instance |
command |
|
The Command instance to be registered |