declare abstract class ApplicationCommandOptionBase extends SharedNameAndDescriptionThe base application command option builder that contains common symbols for application command builders.
readonlyoptionalexternaldescription_localizations? : LocalizationMap
The description localizations of this command.
Inherited from: SharedNameAndDescription
readonlyexternaldescription : string
The description of this command.
Inherited from: SharedNameAndDescription
readonlyoptionalexternalname_localizations? : LocalizationMap
The name localizations of this command.
Inherited from: SharedNameAndDescription
readonlyexternalrequired : boolean = false
Whether this option is required.
abstractreadonlyexternaltype : ApplicationCommandOptionType
The type of this option.
protectedexternal runRequiredValidations() : void
This method runs required validators on this builder.
external setDescription(description: string) : this
Sets the description of this command.
Inherited from: SharedNameAndDescription
external setDescriptionLocalization(locale: LocaleString) : this
Sets a description localization for this command.
Inherited from: SharedNameAndDescription
external setDescriptionLocalizations(localizedDescriptions: LocalizationMap | null) : this
Sets the description localizations for this command.
Inherited from: SharedNameAndDescription
external setName(name: string) : this
Sets the name of this command.
Inherited from: SharedNameAndDescription
external setNameLocalization(locale: LocaleString) : this
Sets a name localization for this command.
Inherited from: SharedNameAndDescription
external setNameLocalizations(localizedNames: LocalizationMap | null) : this
Sets the name localizations for this command.
Inherited from: SharedNameAndDescription
external setRequired(required: boolean) : this
Sets whether this option is required.
abstractexternal toJSON() : APIApplicationCommandBasicOption
Serializes this builder to API-compatible JSON data.