Optional
aliases?: string[]Command names.
Optional
args?: ArgumentOptions[] | ArgumentGeneratorArgument options or generator.
Optional
argumentDefaults?: DefaultArgumentOptionsThe default argument options.
Optional
before?: BeforeActionFunction to run before argument parsing and execution.
Optional
channel?: "guild" | "dm" | nullRestricts channel to either 'guild' or 'dm'.
Optional
clientPermissions?: PermissionResolvable | MissingPermissionSupplierPermissions required by the client to run this command.
Optional
condition?: ExecutionPredicateWhether or not to run on messages that are not directly commands.
Optional
cooldown?: number | nullThe command cooldown in milliseconds.
Optional
description?: string | ArrayOrNot<any>Description of the command.
Optional
editable?: booleanWhether or not message edits will run this command.
Optional
flags?: string[]Flags to use when using an ArgumentGenerator
Optional
ignoreCooldown?: ArrayOrNot<Snowflake> | IgnoreCheckPredicateCommandID of user(s) to ignore cooldown or a function to ignore.
Optional
ignorePermissions?: ArrayOrNot<Snowflake> | IgnoreCheckPredicateCommandID of user(s) to ignore userPermissions
checks or a function to ignore.
Optional
localization?: CommandLocalizationThe slash command localizations.
Optional
lock?: KeySupplier | "guild" | "channel" | "user"The key type or key generator for the locker. If lock is a string, it's expected one of 'guild', 'channel', or 'user'
Optional
onlyNsfw?: booleanWhether or not to only allow the command to be run in NSFW channels.
Optional
optionFlags?: string[]Option flags to use when using an ArgumentGenerator.
Optional
ownerOnly?: booleanWhether or not to allow client owner(s) only.
Optional
prefix?: ArrayOrNot<string> | PrefixSupplierThe prefix(es) to overwrite the global one for this command.
Optional
quoted?: booleanWhether or not to consider quotes.
Optional
ratelimit?: numberAmount of command uses allowed until cooldown.
Optional
regex?: RegExp | RegexSupplierA regex to match in messages that are not directly commands. The args object will have match
and matches
properties.
Optional
separator?: stringCustom separator for argument input.
Optional
slash?: booleanMark command as slash command and set information.
Optional
slashContexts?: readonly InteractionContextType[]Interaction context(s) where the command can be used
Only for globally-scoped commands
Optional
slashDefaultMemberPermissions?: PermissionResolvable | nullThe default bitfield used to determine whether this command be used in a guild
Optional
slashDmPermission?: booleanWhether the command is enabled in DMs
Cannot be enabled for commands that specify slashGuilds
Optional
slashEphemeral?: booleanWhether slash command responses for this command should be ephemeral or not.
Optional
slashGuilds?: string[]Assign slash commands to Specific guilds. This option will make the commands not register globally, but only to the chosen servers.
Optional
slashIntegrationTypes?: readonly ApplicationIntegrationType[]Installation context(s) where the command is available
Only for globally-scoped commands
Optional
slashOnly?: booleanOnly allow this command to be used as a slash command. Also makes slash
true
Optional
slashOptions?: SlashOption[]Options for using the slash command.
Optional
superUserOnly?: booleanWhether or not to allow client superUsers(s) only.
Optional
typing?: booleanWhether or not to type in channel during execution.
Optional
userPermissions?: PermissionResolvable | MissingPermissionSupplierPermissions required by the user to run this command.
Options to use for command execution behavior.