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
booleanThe description of the command.
devOnly
property
booleanWhether the command is only available to developers.
guildOnly
property
booleanWhether the command can only be used in a guild.
userPermissions
property
PermissionsString[]The permissions required for the user to execute the command.