Skip to main content

You are looking at documentation for CommandKit version 0.1.10 which is no longer actively maintained. We highly recommend you to upgrade to CommandKit v1.

Version: 0.1.10

CommandKit

CommandKit​

new CommandKit(options)
ParameterTypeOptionalDescription
optionsCommandKitOptions❌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".

ParameterTypeOptional
typeReloadOptions✅

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".