class ApplicationCommandOptionWithChoicesAndAutocompleteMixin

export declare class ApplicationCommandOptionWithChoicesAndAutocompleteMixin<T extends number | string>

This mixin holds choices and autocomplete symbols used for options.

Type Parameters

T extends number | string

readonlyoptional
autocomplete? : boolean

Whether this option utilizes autocomplete.

readonlyoptional
choices? : APIApplicationCommandOptionChoice<T>[]

The choices of this option.

The type of this option.

addChoices() : this

Adds multiple choices to this option.

setAutocomplete(
autocomplete: boolean
) : this

Whether this option uses autocomplete.

setChoices<>(
choices: Input
) : this

Sets multiple choices for this option.