class SlashCommandAttachmentOption

export declare class SlashCommandAttachmentOption extends ApplicationCommandOptionBase

readonlyoptional
description_localizations? : LocalizationMap

Inherited from: SharedNameAndDescription

readonly
description : string

Inherited from: SharedNameAndDescription

readonlyoptional
name_localizations? : LocalizationMap

Inherited from: SharedNameAndDescription

readonly
name : string

Inherited from: SharedNameAndDescription

readonly
required : boolean

Inherited from: ApplicationCommandOptionBase

protected
runRequiredValidations() : void

Inherited from: ApplicationCommandOptionBase

setDescription(
description: string
) : this

Sets the description

Inherited from: SharedNameAndDescription

setDescriptionLocalization(
locale: LocaleString
localizedDescription: string | null
) : this

Sets a description localization

Inherited from: SharedNameAndDescription

setDescriptionLocalizations(
localizedDescriptions: LocalizationMap | null
) : this

Sets the description localizations

Inherited from: SharedNameAndDescription

setName(
name: string
) : this

Sets the name

Inherited from: SharedNameAndDescription

setNameLocalization(
locale: LocaleString
localizedName: string | null
) : this

Sets a name localization

Inherited from: SharedNameAndDescription

setNameLocalizations(
localizedNames: LocalizationMap | null
) : this

Sets the name localizations

Inherited from: SharedNameAndDescription

setRequired(
required: boolean
) : this

Marks the option as required

Inherited from: ApplicationCommandOptionBase