Skip to content

Commit c5bee66

Browse files
Fix unintended behaviour of AutocompleteContext.command
1 parent 203eb31 commit c5bee66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

discord/commands/commands.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ async def invoke_autocomplete_callback(self, ctx: AutocompleteContext):
537537
i["name"]:i["value"]
538538
for i in ctx.interaction.data["options"]
539539
})
540+
ctx.command = self
540541
ctx.focused = option
541542
ctx.value = op.get("value")
542543
ctx.options = values

0 commit comments

Comments
 (0)