Readonly
descriptionThe description of this subcommand.
Optional
Readonly
description_The description localizations of this command.
Readonly
nameThe name of this subcommand.
Optional
Readonly
name_The name localizations of this command.
Readonly
optionsThe options within this subcommand.
Adds an attachment option.
A function that returns an option builder or an already built builder
Adds a boolean option.
A function that returns an option builder or an already built builder
Adds a channel option.
A function that returns an option builder or an already built builder
Adds an integer option.
A function that returns an option builder or an already built builder
Adds a mentionable option.
A function that returns an option builder or an already built builder
Adds a number option.
A function that returns an option builder or an already built builder
Adds a role option.
A function that returns an option builder or an already built builder
Adds a string option.
A function that returns an option builder or an already built builder
Adds a user option.
A function that returns an option builder or an already built builder
Sets the description of this command.
The description to use
Sets a description localization for this command.
The locale to set
The localized description for the given locale
Sets the description localizations for this command.
The object of localized descriptions to set
Sets the name of this command.
The name to use
Sets a name localization for this command.
The locale to set
The localized name for the given locale
Sets the name localizations for this command.
The object of localized names to set
Serializes this builder to API-compatible JSON data.
This method runs validations on the data before serializing it. As such, it may throw an error if the data is invalid.
Generated using TypeDoc
A builder that creates API-compatible JSON data for slash command subcommands.
See
https://discord.com/developers/docs/interactions/application-commands#subcommands-and-subcommand-groups