Corrected issue were aliases were still detected on child commands
This commit is contained in:
parent
dd3405141b
commit
49bd09fc52
|
@ -15,7 +15,8 @@ def get_all_commands(bot):
|
|||
def _get_all_commands(command):
|
||||
yield command.qualified_name
|
||||
try:
|
||||
for cmd in command.commands.values():
|
||||
yield from _get_all_commands(cmd)
|
||||
non_aliases = set(cmd.qualified_name for cmd in command.commands.values())
|
||||
for cmd_name in non_aliases:
|
||||
yield from _get_all_commands(command.commands[cmd_name])
|
||||
except AttributeError:
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue