ApplicationCommandOptionWithChoicesAndAutocompleteMixin

export declare class ApplicationCommandOptionWithChoicesAndAutocompleteMixin<ChoiceType extends number | string>
export declare class ApplicationCommandOptionWithChoicesAndAutocompleteMixin<ChoiceType extends number | string>
This mixin holds choices and autocomplete symbols used for options.
NameConstraintsOptionalDefaultDescription
ChoiceTypenumber | stringNoNone
Readonly
autocomplete?:boolean
Whether this option utilizes autocomplete.
Readonly
choices?:APIApplicationCommandOptionChoice<ChoiceType>[]
The choices of this option.
The type of this option.
addChoices(...choices):this
Adds multiple choices to this option.
NameTypeOptionalDescription
...choicesAPIApplicationCommandOptionChoice<ChoiceType>[]NoThe choices to add
setAutocomplete(autocomplete):this
Whether this option uses autocomplete.
NameTypeOptionalDescription
autocompletebooleanNoWhether this option should use autocomplete
setChoices(...choices):this
Sets multiple choices for this option.
NameConstraintsOptionalDefaultDescription
InputAPIApplicationCommandOptionChoice<ChoiceType>[]NoNone
NameTypeOptionalDescription
...choicesInputNoThe choices to set