class ApplicationCommandOptionWithChoicesMixin

export declare class ApplicationCommandOptionWithChoicesMixin<ChoiceType extends number | string>

This mixin holds choices and autocomplete symbols used for options.

Type Parameters

ChoiceType extends number | string

choices? : APIApplicationCommandOptionChoice<ChoiceType>[]

The choices of this option.

The type of this option.

addChoices() : this

Adds multiple choices to this option.


Input extends APIApplicationCommandOptionChoice<ChoiceType>

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

Sets multiple choices for this option.