Skip to content

Commit 49a646e

Browse files
authored
Remove valid check for sub_name
1 parent 31c9052 commit 49a646e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

discord_slash/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,8 +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-
if sub_name is not None:
768-
ctx.subcommand_name = sub_name
767+
ctx.subcommand_name = sub_name
769768
sub_opts = sub["options"] if "options" in sub else []
770769
for x in sub_opts:
771770
if "options" in x or "value" not in x:

0 commit comments

Comments
 (0)