Skip to content

Commit b1b9948

Browse files
authored
removing tuple usage
removing tuple usage
1 parent e6b49ae commit b1b9948

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

discord/commands/commands.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,7 @@ async def invoke_autocomplete_callback(self, ctx: AutocompleteContext):
565565
result = await result
566566

567567
choices = [
568-
o if isinstance(o, OptionChoice)
569-
else (OptionChoice(*o) if isinstance(o, tuple) else OptionChoice(o))
568+
o if isinstance(o, OptionChoice) else OptionChoice(o)
570569
for o in result
571570
][:25]
572571
return await ctx.interaction.response.send_autocomplete_result(choices=choices)

0 commit comments

Comments
 (0)