ApplicationCommandOptionWithChoicesMixin

export declare class ApplicationCommandOptionWithChoicesMixin<ChoiceType extends number | string>
export declare class ApplicationCommandOptionWithChoicesMixin<ChoiceType extends number | string>
This mixin holds choices and autocomplete symbols used for options.
NameConstraintsOptionalDefaultDescription
ChoiceTypenumber | stringNoNone
addChoices(...choices):this
Adds multiple choices to this option.
NameTypeOptionalDescription
...choicesRestOrArray<APIApplicationCommandOptionChoice<ChoiceType>>NoThe choices to add
setChoices(...choices):this
Sets multiple choices for this option.
NameTypeOptionalDescription
...choicesRestOrArray<APIApplicationCommandOptionChoice<ChoiceType>>NoThe choices to set