The client instance.
ReadonlyaliasesProtected ReadonlyapplicationThe client instance.
ReadonlybetaWhether the command is in beta.
Optional ReadonlycooldownThe cooldown of the command in milliseconds.
ReadonlydeferWhether the command should be deferred.
ReadonlydeprecatedWhether the command is deprecated.
ReadonlydescriptionOptional ReadonlydetailedReadonlydisabledWhether the command is disabled.
ReadonlyephemeralWhether the command should be ephemeral.
ReadonlyguardsThe permission guards for the command.
ReadonlyisolatedWhether the subcommands of the command are isolated in their own file.
Protected ReadonlyloggerThe logger for the command.
ReadonlymaxThe maximum number of attempts for the command, during the cooldown period.
ReadonlynameReadonlyoptionsOptions for the command. The keys are the options without dashes at the beginning, and the values are the description of the option.
ReadonlypermissionThe mode for checking permissions.
Optional ReadonlypermissionsThe required permissions for the member running this command. Can be modified or removed by the permission manager.
Optional ReadonlypersistentThe persistent custom permissions for the member running this command.
These permissions are not affected by the permission manager.
Optional ReadonlypersistentThe persistent discord permissions for the member running this command.
These permissions are not affected by the permission manager.
ReadonlysinceThe version of the bot when this command was introduced.
ReadonlysubcommandThe metadata for the subcommands of the command.
ReadonlysubcommandsThe subcommands of the command.
ReadonlysupportedThe supported contexts of the command.
ReadonlysystemWhether the command can only be run by system admins.
Optional ReadonlysystemThe required permissions for the bot system to run this command.
ReadonlyusageThe 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.
ProtectedabortProtectedauthorizeAttempts 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.
ProtectedbuildProtectedbuildProtectedcheckChecks the guards of the command.
The command context.
True if the guards are met, false otherwise.
ProtectedcheckChecks the permissions of the command.
The command context.
True if the permissions are met, false otherwise.
ProtectedcheckChecks the preconditions of the command.
The command context.
True if the preconditions are met, false otherwise.
ProtectedcomputeExecutes the actual command logic.
The command context.
OptionalinitializeOptionalonHandles the case when a subcommand is not found.
The command context.
The subcommand that was not found.
The type of error that occurred.
Prepares and begins to execute the command.
The command context.
OptionalrootCommand: Command<Legacy | ChatInput>The root command.
Runs the preconditions of the command.
The command context.
The result of the precondition check.
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.