ApplicationCommandOptionWithChoicesAndAutocompleteMixin
export declare class ApplicationCommandOptionWithChoicesAndAutocompleteMixin<T extends number | string>
export declare class ApplicationCommandOptionWithChoicesAndAutocompleteMixin<T extends number | string>
No summary provided.
Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
T | number | string | No | None |
Readonly
Optional
autocomplete?
:
boolean
Readonly
Optional
choices?
:
APIApplicationCommandOptionChoice<T>[]
Readonly
type
:
ApplicationCommandOptionType
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 |