Documentation
Types
CommandOptions

CommandOptions

devOnly (optional)

  • Type: boolean

This determines whether the command should only be registered in development guilds and be executed by the bot developers.

userPermissions (optional)

This determines whether the user has the required permissions to execute the command. This is checked against the user's permissions in the guild where the command was executed (if any).

botPermissions (optional)

This determines whether the bot has the required permissions to execute the command. This is checked against the bot's permissions in the guild where the command was executed (if any).

deleted (optional)

  • Type: boolean

This determines whether the command should be deleted on the next reload.