We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a39352 commit 04e2bc8Copy full SHA for 04e2bc8
discord/commands/commands.py
@@ -535,12 +535,12 @@ async def _invoke(self, ctx: ApplicationContext) -> None:
535
async def invoke_autocomplete_callback(self, ctx: AutocompleteContext):
536
values = { i.name: i.default for i in self.options }
537
538
- for op in interaction.data.get("options", []):
+ for op in ctx.interaction.data.get("options", []):
539
if op.get("focused", False):
540
option = find(lambda o: o.name == op["name"], self.options)
541
values.update({
542
i["name"]:i["value"]
543
- for i in interaction.data["options"]
+ for i in ctx.interaction.data["options"]
544
})
545
ctx.command = self
546
ctx.focused = option
0 commit comments