Search...

ApplicationCommandOptionWithChoicesAndAutocompleteMixin

declare class ApplicationCommandOptionWithChoicesAndAutocompleteMixin<T extends string | number> 
declare class ApplicationCommandOptionWithChoicesAndAutocompleteMixin<T extends string | number> 

No summary provided.

NameConstraintsOptionalDefaultDescription
Tstring | numberNoNone
Readonly
Optional

autocomplete?

:

boolean

Readonly
Optional

choices?

:

APIApplicationCommandOptionChoice<T>[]

Readonly

type

:

ApplicationCommandOptionType

addChoices(choices)

:

this

Adds multiple choices for this option
NameTypeOptionalDescription
choicesAPIApplicationCommandOptionChoice<T>[]NoThe choices to add

setAutocomplete(autocomplete)

:

this

Marks the option as autocompletable
NameTypeOptionalDescription
autocompletebooleanNoIf this option should be autocompletable

setChoices(choices)

:

this

NameTypeOptionalDescription
choicesInputNoNone