class ApplicationCommandOptionBase

abstract
export declare abstract class ApplicationCommandOptionBase extends SharedNameAndDescription implements JSONEncodable<APIApplicationCommandBasicOption>

The base application command option builder that contains common symbols for application command builders.

Constructors

constructor()

Constructs a new instance of the ApplicationCommandOptionBase class

protectedstaticreadonly
predicate : z.ZodTypeAny

clearDescriptionLocalization(
locale: Locale
) : this

Clears a description localization for this command.

Inherited from: SharedNameAndDescription

clearDescriptionLocalizations() : this

Clears all description localizations for this command.

Inherited from: SharedNameAndDescription

clearNameLocalization(
locale: Locale
) : this

Clears a name localization for this command.

Inherited from: SharedName

clearNameLocalizations() : this

Clears all name localizations for this command.

Inherited from: SharedName

setDescription(
description: string
) : this

Sets the description of this command.

Inherited from: SharedNameAndDescription

setDescriptionLocalization(
locale: Locale
localizedDescription: string
) : this

Sets a description localization for this command.

Inherited from: SharedNameAndDescription

setDescriptionLocalizations(
localizedDescriptions: Partial<Record<Locale, string>>
) : this

Sets the description localizations for this command.

Inherited from: SharedNameAndDescription

setName(
name: string
) : this

Sets the name of this command.

Inherited from: SharedName

setNameLocalization(
locale: Locale
localizedName: string
) : this

Sets a name localization for this command.

Inherited from: SharedName

setNameLocalizations(
localizedNames: Partial<Record<Locale, string>>
) : this

Sets the name localizations for this command.

Inherited from: SharedName

setRequired(
required?: boolean
) : this

Sets whether this option is required.

toJSON(
validationOverride?: 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.