Optionalaliases?: string[]Command names.
Optionalargs?: ArgumentOptions[] | ArgumentGeneratorArgument options or generator.
OptionalargumentDefaults?: DefaultArgumentOptionsThe default argument options.
Optionalbefore?: BeforeActionFunction to run before argument parsing and execution.
Optionalchannel?: "guild" | "dm" | nullRestricts channel to either 'guild' or 'dm'.
OptionalclientPermissions?: PermissionResolvable | MissingPermissionSupplierPermissions required by the client to run this command.
Optionalcondition?: ExecutionPredicateWhether or not to run on messages that are not directly commands.
Optionalcooldown?: number | nullThe command cooldown in milliseconds.
Optionaldescription?: string | ArrayOrNot<any>Description of the command.
Optionaleditable?: booleanWhether or not message edits will run this command.
Optionalflags?: string[]Flags to use when using an ArgumentGenerator
OptionalignoreCooldown?: ArrayOrNot<Snowflake> | IgnoreCheckPredicateCommandID of user(s) to ignore cooldown or a function to ignore.
OptionalignorePermissions?: ArrayOrNot<Snowflake> | IgnoreCheckPredicateCommandID of user(s) to ignore userPermissions checks or a function to ignore.
Optionallocalization?: CommandLocalizationThe slash command localizations.
Optionallock?: 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'
OptionalonlyNsfw?: booleanWhether or not to only allow the command to be run in NSFW channels.
OptionaloptionFlags?: string[]Option flags to use when using an ArgumentGenerator.
OptionalownerOnly?: booleanWhether or not to allow client owner(s) only.
Optionalprefix?: ArrayOrNot<string> | PrefixSupplierThe prefix(es) to overwrite the global one for this command.
Optionalquoted?: booleanWhether or not to consider quotes.
Optionalratelimit?: numberAmount of command uses allowed until cooldown.
Optionalregex?: RegExp | RegexSupplierA regex to match in messages that are not directly commands. The args object will have match and matches properties.
Optionalseparator?: stringCustom separator for argument input.
Optionalslash?: booleanMark command as slash command and set information.
OptionalslashContexts?: readonly InteractionContextType[]Interaction context(s) where the command can be used
Only for globally-scoped commands
OptionalslashDefaultMemberPermissions?: PermissionResolvable | nullThe default bitfield used to determine whether this command be used in a guild
OptionalslashEphemeral?: booleanWhether slash command responses for this command should be ephemeral or not.
OptionalslashGuilds?: string[]Assign slash commands to Specific guilds. This option will make the commands not register globally, but only to the chosen servers.
OptionalslashIntegrationTypes?: readonly ApplicationIntegrationType[]Installation context(s) where the command is available
Only for globally-scoped commands
OptionalslashOnly?: booleanOnly allow this command to be used as a slash command. Also makes slash true
OptionalslashOptions?: SlashOption[]Options for using the slash command.
OptionalsuperUserOnly?: booleanWhether or not to allow client superUsers(s) only.
Optionaltyping?: booleanWhether or not to type in channel during execution.
OptionaluserPermissions?: PermissionResolvable | MissingPermissionSupplierPermissions required by the user to run this command.
Options to use for command execution behavior.