rewrite: Support crossloading groups.

This commit is contained in:
2022-12-01 18:07:32 +02:00
parent ca45ac7eba
commit 72fd3c17f0
2 changed files with 49 additions and 0 deletions

View File

@@ -193,3 +193,8 @@ class LionBot(Bot):
f"Caught an unknown top-level exception while executing: {cmd_str}",
extra={'action': 'BotError', 'with_ctx': True}
)
def add_command(self, command):
if hasattr(command, '_placeholder_group_'):
return
super().add_command(command)