Skip to main content
Version: 1.x

CommandOptions

CommandOptions​

Represents the options for a command, including permissions and execution conditions.

Signature
interface CommandOptions {
botPermissions?: PermissionsString[];
deleted?: boolean;
devOnly?: boolean;
guildOnly?: boolean;
userPermissions?: PermissionsString[];
}

botPermissions​

property
PermissionsString[]

The name of the command.

deleted​

property
boolean

The description of the command.

devOnly​

property
boolean

Whether the command is only available to developers.

guildOnly​

property
boolean

Whether the command can only be used in a guild.

userPermissions​

property
PermissionsString[]

The permissions required for the user to execute the command.