Skip to content

Commit 3274cb2

Browse files
authored
Set AutocompleteContext attributes
1 parent f7d0d60 commit 3274cb2

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

discord/commands/context.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,6 @@ class AutocompleteContext:
167167
The bot that the command belongs to.
168168
interaction: :class:`.Interaction`
169169
The interaction object that invoked the autocomplete.
170-
command: :class:`.ApplicationCommand`
171-
The command that this context belongs to.
172-
focused: :class:`.Option`
173-
The option the user is currently typing.
174-
value: :class:`.str`
175-
The content of the focused option.
176-
options :class:`.dict`
177-
A name to value mapping of the options that the user has selected before this option.
178170
"""
179171

180172
__slots__ = ("bot", "interaction", "command", "focused", "value", "options")
@@ -183,10 +175,10 @@ def __init__(self, bot: Bot, interaction: Interaction) -> None:
183175
self.bot = bot
184176
self.interaction = interaction
185177

186-
# self.command = command
187-
# self.focused = focused
188-
# self.value = value
189-
# self.options = options
178+
self.command: ApplicationCommand = None # type: ignore
179+
self.focused: Option = None # type: ignore
180+
self.value: str = None # type: ignore
181+
self.options: dict = None # type: ignore
190182

191183
@property
192184
def cog(self) -> Optional[Cog]:

0 commit comments

Comments
 (0)