Corrected issue where qualified name was being pulled on a child command
This commit is contained in:
parent
49bd09fc52
commit
3943c8e740
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue