The client instance.
Readonly
aliasesProtected
Readonly
applicationThe client instance.
Readonly
betaWhether the command is in beta.
Protected
Readonly
configOptional
Readonly
cooldownThe cooldown of the command in milliseconds.
Readonly
deferWhether the command should be deferred.
Readonly
deprecatedWhether the command is deprecated.
Readonly
descriptionOptional
Readonly
detailedProtected
Readonly
directiveReadonly
disabledWhether the command is disabled.
Readonly
ephemeralWhether the command should be ephemeral.
Readonly
guardsThe permission guards for the command.
Readonly
isolatedWhether the subcommands of the command are isolated in their own file.
Protected
Readonly
loggerThe logger for the command.
Readonly
maxThe maximum number of attempts for the command, during the cooldown period.
Readonly
nameReadonly
optionsOptions for the command. The keys are the options without dashes at the beginning, and the values are the description of the option.
Readonly
permissionThe mode for checking permissions.
The required permissions for the member running this command. Can be modified or removed by the permission manager.
Optional
Readonly
persistentThe persistent custom permissions for the member running this command.
These permissions are not affected by the permission manager.
Optional
Readonly
persistentThe persistent discord permissions for the member running this command.
These permissions are not affected by the permission manager.
Protected
Readonly
queueReadonly
sinceThe version of the bot when this command was introduced.
Readonly
subcommandThe metadata for the subcommands of the command.
Readonly
subcommandsThe subcommands of the command.
Readonly
supportedThe supported contexts of the command.
Readonly
systemWhether the command can only be run by system admins.
Protected
Readonly
systemReadonly
systemThe required permissions for the bot system to run this command.
Readonly
usageThe usage(s) of the command.
A wrapper for the _file private property.
Checks if this command has subcommands.
True if the command has subcommands, false otherwise.
A wrapper for the _initialized private property.
Protected
abortProtected
authorizeAttempts to authorize the user to perform an action.
The context or user to authorize.
The options for the authorization.
True if the user is authorized, false otherwise.
Protected
buildBuilds the chat input command.
The chat input command builder.
Protected
buildBuilds the context menu command.
The context menu command builder.
Protected
checkChecks the guards of the command.
The command context.
True if the guards are met, false otherwise.
Protected
checkChecks the permissions of the command.
The command context.
True if the permissions are met, false otherwise.
Protected
checkChecks the preconditions of the command.
The command context.
True if the preconditions are met, false otherwise.
Protected
computeExecutes the actual command logic.
The command context.
The command arguments.
Optional
initializeInitializes the command. This method gets called when the command is loaded.
Optional
guildId: stringOptional
onHandles the case when a subcommand is not found.
The command context.
The subcommand that was not found.
The type of error that occurred.
Runs the preconditions of the command.
The command context.
The result of the precondition check.
Sets the file associated with the command.
The path to the file associated with the command.
Checks if the command supports any context menu.
True if the command supports any context menu, false otherwise.
Checks if the command supports message context menu.
True if the command supports message context menu, false otherwise.
Checks if the command supports user context menu.
True if the command supports user context menu, false otherwise.
Creates a new instance of the Command class.