Skip to content

Commit

Permalink
Fix unintended behaviour of AutocompleteContext.command
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithSwastik committed Nov 17, 2021
1 parent 203eb31 commit c5bee66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions discord/commands/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ async def invoke_autocomplete_callback(self, ctx: AutocompleteContext):
i["name"]:i["value"]
for i in ctx.interaction.data["options"]
})
ctx.command = self
ctx.focused = option
ctx.value = op.get("value")
ctx.options = values
Expand Down

0 comments on commit c5bee66

Please sign in to comment.