ApplicationCommandOptionWithChoicesAndAutocompleteMixin
No summary provided.
declare class ApplicationCommandOptionWithChoicesAndAutocompleteMixin<T extends number | string>
declare class ApplicationCommandOptionWithChoicesAndAutocompleteMixin<T extends number | string>
Readonly
Optional
autocomplete?
:
boolean
Readonly
Optional
Readonly
addChoices(choices)
:
this
Adds multiple choices for this option
Name | Type | Optional | Description |
---|---|---|---|
choices | APIApplicationCommandOptionChoice<T>[] | No | The choices to add |
setAutocomplete(autocomplete)
:
this
Marks the option as autocompletable
Name | Type | Optional | Description |
---|---|---|---|
autocomplete | boolean | No | If this option should be autocompletable |
setChoices(choices)
:
this
Name | Type | Optional | Description |
---|---|---|---|
choices | Input | No | None |