CommandRegistrar
CommandRegistrar
new CommandRegistrar(commandkit)
| Parameter | Type | Optional | Description |
|---|---|---|---|
| commandkit | CommandKit | ❌ | The commandkit instance. |
Properties
public commandkit: any
The commandkit instance.
Methods
public getCommandsData(): Array<CommandData>
Gets the commands data.
public register(): Promise<void>
Registers loaded commands.
public updateGlobalCommands(commands): Promise<void>
Updates the global commands.
| Parameter | Type | Optional |
|---|---|---|
| commands | Array<CommandData> | ❌ |
public updateGuildCommands(commands): Promise<void>
Updates the guild commands.
| Parameter | Type | Optional |
|---|---|---|
| commands | Array<CommandData> | ❌ |