CommandKit
CommandKit
new CommandKit(options)
Parameter | Type | Optional | Description |
---|---|---|---|
options | CommandKitOptions | ❌ | The default CommandKit configuration. |
Properties
public static _instance: any
public client: any
Get the client attached to this CommandKit instance.
public commandHandler: any
Get command handler instance.
public commands: any
public commandsPath: any
public devGuildIds: any
public devRoleIds: any
public devUserIds: any
public eventsPath: any
public validationsPath: any
Methods
public reloadCommands(type?): Promise<void>
Updates application commands with the latest from "commandsPath".
Parameter | Type | Optional |
---|---|---|
type | ReloadOptions | ✅ |
public reloadEvents(): Promise<void>
Updates application events with the latest from "eventsPath".
public reloadValidations(): Promise<void>
Updates application command validations with the latest from "validationsPath".