We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bc95bf commit 3cd1eccCopy full SHA for 3cd1ecc
discord_slash/client.py
@@ -295,7 +295,7 @@ def add_slash_command(self,
295
name = cmd.__name__ if not name else name
296
name = name.lower()
297
if name in self.commands.keys():
298
- tgt = self.subcommands[name]
+ tgt = self.commands[name]
299
if not tgt.has_subcommands:
300
raise error.DuplicateCommand(name)
301
has_subcommands = tgt.has_subcommands
0 commit comments