class ApplicationCommandOptionBase
implements
JSONEncodable<APIApplicationCommandBasicOption>extends
SharedNameAndDescriptionexport declare abstract class ApplicationCommandOptionBase extends SharedNameAndDescription implements JSONEncodable<APIApplicationCommandBasicOption>
The base application command option builder that contains common symbols for application command builders.
protectedreadonlyApplicationCommandOptionBaseData & SharedNameAndDescriptionData data :
protectedstaticreadonlyz.ZodTypeAny predicate :
clearDescriptionLocalizationlocale: LocaleString) : this (
Clears a description localization for this command.
Inherited from: SharedNameAndDescription
Clears all description localizations for this command.
Inherited from: SharedNameAndDescription
clearNameLocalizationlocale: LocaleString) : this (
Clears a name localization for this command.
Inherited from: SharedName
Clears all name localizations for this command.
Inherited from: SharedName
setDescriptiondescription: string) : this (
Sets the description of this command.
Inherited from: SharedNameAndDescription
setDescriptionLocalizationlocale: LocaleStringlocalizedDescription: string) : this (
Sets a description localization for this command.
Inherited from: SharedNameAndDescription
setDescriptionLocalizationslocalizedDescriptions: Partial<Record<LocaleString, string>>) : this (
Sets the description localizations for this command.
Inherited from: SharedNameAndDescription
setNameLocalizationlocale: LocaleStringlocalizedName: string) : this (
Sets a name localization for this command.
Inherited from: SharedName
setNameLocalizationslocalizedNames: Partial<Record<LocaleString, string>>) : this (
Sets the name localizations for this command.
Inherited from: SharedName
setRequiredrequired?: boolean) : this (
Sets whether this option is required.
toJSONvalidationOverride?: boolean) : APIApplicationCommandBasicOption (
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.