AutocompleteContext
Class
Autocomplete context: current input (value), option and other filled options.
from discord_interactions import AutocompleteContextConstructor
AutocompleteContext( interaction: discord.Interaction, value: str, option_name: str, focused: bool = True, options: Dict[str, Any] = <factory>,)| Name | Type | Default | Description |
|---|---|---|---|
interaction | discord.Interaction | required | |
value | str | required | |
option_name | str | required | |
focused | bool | True | |
options | Dict[str, Any] | <factory> |
Properties
| Name | Type | Description |
|---|---|---|
user | discord.User | discord.Member | |
guild | discord.Guild | None | |
channel | discord.GuildChannel | None | |
locale | str | |
interaction | discord.Interaction | |
value | str | |
option_name | str | |
focused | bool | |
options | Dict[str, Any] |