class ApplicationCommandOptionWithChoicesMixin

external
declare class ApplicationCommandOptionWithChoicesMixin<ChoiceType extends number | string>

This mixin holds choices and autocomplete symbols used for options.

Type Parameters

ChoiceType extends number | string

readonlyoptionalexternal
choices? : APIApplicationCommandOptionChoice<ChoiceType>[]

The choices of this option.

readonlyexternal
type : ApplicationCommandOptionType

The type of this option.

external
addChoices() : this

Adds multiple choices to this option.

external
setChoices<

Input extends APIApplicationCommandOptionChoice<ChoiceType>

>(
...choices: RestOrArray<Input>
) : this

Sets multiple choices for this option.