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.
guild_ids
has_subcommands
1 parent 4f38d7a commit fae5da3Copy full SHA for fae5da3
discord_slash/client.py
@@ -104,6 +104,10 @@ def add_slash_command(self,
104
"""
105
name = cmd.__name__ if not name else name
106
name = name.lower()
107
+ if name in self.commands.keys():
108
+ tgt = self.subcommands[name]
109
+ has_subcommands = tgt["has_subcommands"]
110
+ guild_ids += tgt["guild_ids"]
111
_cmd = {
112
"func": cmd,
113
"description": description if description else "No description.",
0 commit comments