class ApplicationCommandOptionWithChoicesAndAutocompleteMixin

export declare class ApplicationCommandOptionWithChoicesAndAutocompleteMixin<ChoiceType extends number | string>

This mixin holds choices and autocomplete symbols used for options.

Type Parameters

ChoiceType extends number | string

readonlyoptional
autocomplete? : boolean

Whether this option utilizes autocomplete.

readonlyoptional
choices? : APIApplicationCommandOptionChoice<ChoiceType>[]

The choices of this option.

The type of this option.

addChoices(
...choices: APIApplicationCommandOptionChoice<ChoiceType>[]
) : this

Adds multiple choices to this option.

setAutocomplete(
autocomplete: boolean
) : this

Whether this option uses autocomplete.

setChoices<

Input extends APIApplicationCommandOptionChoice<ChoiceType>[]

>(
...choices: Input
) : this

Sets multiple choices for this option.