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
1 parent a5caf92 commit 69f125dCopy full SHA for 69f125d
discord_slash/client.py
@@ -344,6 +344,7 @@ def add_slash_command(self,
344
"""
345
name = name or cmd.__name__
346
name = name.lower()
347
+ guild_ids = guild_ids if guild_ids else []
348
if name in self.commands:
349
tgt = self.commands[name]
350
if not tgt.has_subcommands:
@@ -411,6 +412,7 @@ def add_subcommand(self,
411
412
413
414
description = description or getdoc(cmd)
415
416
417
if base in self.commands:
418
for x in guild_ids:
0 commit comments