ApplicationCommandOptionWithChoicesAndAutocompleteMixin
export declare class ApplicationCommandOptionWithChoicesAndAutocompleteMixin<T extends number | string>
export declare class ApplicationCommandOptionWithChoicesAndAutocompleteMixin<T extends number | string>
This mixin holds choices and autocomplete symbols used for options.
Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
T | number | string | No | None |
Readonly
Optional
autocomplete?
:
boolean
Whether this option utilizes autocomplete.
Readonly
Optional
choices?
:
APIApplicationCommandOptionChoice<T>[]
The choices of this option.
Readonly
type
:
ApplicationCommandOptionType
The type of this option.
addChoices(choices)
:
this
Adds multiple choices to this option.
Name | Type | Optional | Description |
---|---|---|---|
choices | APIApplicationCommandOptionChoice<T>[] | No | The choices to add |
setAutocomplete(autocomplete)
:
this
Whether this option uses autocomplete.
Name | Type | Optional | Description |
---|---|---|---|
autocomplete | boolean | No | Whether this option should use autocomplete |
setChoices(choices)
:
this
Sets multiple choices for this option.
Name | Type | Optional | Description |
---|---|---|---|
choices | Input | No | The choices to set |