Typecorev0.1.0-next.5
AutocompleteOptions
The sibling-option view for an autocomplete handler. Only the four kinds Discord resolves during autocomplete appear (string, integer, number, boolean), every read is T | nullT | null because a sibling is partial while the user types the focused field, and a getter appears only when a registered command has an option of that kind.
type AutocompleteOptions<Route extends keyof SlashOptionRegistry> =
Getter<Route, "string", "getString"> &
Getter<Route, "integer", "getInteger"> &
Getter<Route, "number", "getNumber"> &
Getter<Route, "boolean", "getBoolean">;type AutocompleteOptions<Route extends keyof SlashOptionRegistry> =
Getter<Route, "string", "getString"> &
Getter<Route, "integer", "getInteger"> &
Getter<Route, "number", "getNumber"> &
Getter<Route, "boolean", "getBoolean">;Route
One or more route keys from SlashOptionRegistrySlashOptionRegistry.
Route extends keyof SlashOptionRegistryRoute extends keyof SlashOptionRegistry