Skip to content

Commit a5caf92

Browse files
authored
Merge pull request #104 from LordOfPolls/master
Define subcommand_name
2 parents 5a87804 + 49a646e commit a5caf92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord_slash/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ async def handle_subcommand(self, ctx: context.SlashContext, data: dict):
764764
sub_name = sub["name"]
765765
if sub_name not in base:
766766
return
767-
ctx.subcommand = sub_name
767+
ctx.subcommand_name = sub_name
768768
sub_opts = sub["options"] if "options" in sub else []
769769
for x in sub_opts:
770770
if "options" in x or "value" not in x:

0 commit comments

Comments
 (0)