Extends
Properties
.groups: string[]
Methods
.registerExternal(command: Command) → void
Register an external command and add it to the <Client>.commands
collection
, erroring on duplicate
aliases
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 |
---|---|---|
command |
|
The Command instance to be registered |
.resolve(input: string) → Command | undefined
Resolve the given Command name or alias to a registered Command
Parameters:
Name | Type | Description |
---|---|---|
input |
|
Command name or alias |