Typeseedcordv0.13.0
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. Across several registered commands the view is the union of their options, so a getter for an option absent on the firing command returns null. Read the focused field from this.focusedthis.focused.
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