Skip to content

Commit 3cd1ecc

Browse files
committed
Fixed incorrect dict used for command duplicate detection
1 parent 3bc95bf commit 3cd1ecc

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
@@ -295,7 +295,7 @@ def add_slash_command(self,
295295
name = cmd.__name__ if not name else name
296296
name = name.lower()
297297
if name in self.commands.keys():
298-
tgt = self.subcommands[name]
298+
tgt = self.commands[name]
299299
if not tgt.has_subcommands:
300300
raise error.DuplicateCommand(name)
301301
has_subcommands = tgt.has_subcommands

0 commit comments

Comments
 (0)