1
0
Fork 0
mirror of synced 2024-06-26 10:10:44 +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):
yield command.qualified_name
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:
yield from _get_all_commands(command.commands[cmd_name])
except AttributeError: