Packages@robojs/mock
DispatchAutocompleteOptions
Interface: DispatchAutocompleteOptions
Options for dispatching an autocomplete interaction
Properties
| Property | Type | Description |
|---|---|---|
channelId? | string | Channel ID (auto-resolved if not provided) |
commandName | string | Command name being typed |
focusedOption | { name: string; type: number; value: string; } | The option being autocompleted (must have focused: true) |
focusedOption.name | string | - |
focusedOption.type? | number | Option type (3=STRING, 4=INTEGER, 10=NUMBER) - defaults to STRING |
focusedOption.value | string | Current partial value user has typed |
guildId? | string | Guild ID (auto-resolved if not provided) |
options? | Record<string, string | number | boolean> | Other options already filled in (optional) |
user? | MockUserConfig | User triggering autocomplete |
