class SlashCommandStringOption

export declare class SlashCommandStringOption extends ApplicationCommandOptionBase

readonlyoptional
description_localizations? : LocalizationMap

Inherited from: SharedNameAndDescription

readonly
description : string

Inherited from: SharedNameAndDescription

readonlyoptional
max_length? : number

readonlyoptional
min_length? : number

readonlyoptional
name_localizations? : LocalizationMap

Inherited from: SharedNameAndDescription

readonly
name : string

Inherited from: SharedNameAndDescription

readonly
required : boolean

Inherited from: ApplicationCommandOptionBase

readonlyoptional
autocomplete? : boolean

Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin

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

setMaxLength(
max: number
) : this

Sets the maximum length of this string option.

setMinLength(
min: number
) : this

Sets the minimum length of this string option.

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

addChoices() : this

Adds multiple choices for this option

Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin

setAutocomplete(
autocomplete: boolean
) : this

Marks the option as autocompletable

Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin

setChoices<>(
choices: Input
) : this

Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin