Skip to main content
Version: Next

CommandRegistrar

CommandRegistrar

new CommandRegistrar(commandkit)
ParameterTypeOptionalDescription
commandkitCommandKitThe 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.

ParameterTypeOptional
commandsArray<CommandData>

public updateGuildCommands(commands): Promise<void>

Updates the guild commands.

ParameterTypeOptional
commandsArray<CommandData>