Documentation
Classes
CommandKit

CommandKit

commands

An array of all the command objects that CommandKit is handling. This includes all the properties and methods that are also set outside of CommandKit's configuration. It does however not include the run method since CommandKit handles that internally.

commandsPath

  • Type: string | undefined

The path to the commands directory which was set when instantiating CommandKit.

eventsPath

  • Type: string | undefined

The path to the events directory which was set when instantiating CommandKit.

validationsPath

  • Type: string | undefined

The path to the validations directory which was set when instantiating CommandKit.

devUserIds

  • Type: string[]

The array of developer user IDs which was set when instantiating CommandKit.

devGuildIds

  • Type: string[]

The array of development server IDs which was set when instantiating CommandKit.

devRoleIds

  • Type: string[]

The array of developer role IDs which was set when instantiating CommandKit.

reloadCommands

  • Props type: 'dev' | 'global' | ReloadType (optional)
  • Return type: Promise<void>

Reloads application commands. Using "dev" will only reload commands marked with devOnly, and using "global" will do the opposite. Not passing in a property will reload both dev and global commands. The reload behaviour depends on bulkRegister.

reloadEvents

  • Return type: Promise<void>

Resets and reloads application events.

reloadValidations

  • Return type: Promise<void>

Reloads application commands validations.