1
0
Fork 0
mirror of synced 2024-06-29 03:30:57 +12:00

Corrected issue where qualified name was being pulled on a child command

This commit is contained in:
Phxntxm 2016-12-01 23:02:33 -06:00
parent 49bd09fc52
commit 3943c8e740

View file

@ -15,7 +15,7 @@ def get_all_commands(bot):
def _get_all_commands(command): def _get_all_commands(command):
yield command.qualified_name yield command.qualified_name
try: try:
non_aliases = set(cmd.qualified_name for cmd in command.commands.values()) non_aliases = set(cmd.name for cmd in command.commands.values())
for cmd_name in non_aliases: for cmd_name in non_aliases:
yield from _get_all_commands(command.commands[cmd_name]) yield from _get_all_commands(command.commands[cmd_name])
except AttributeError: except AttributeError: