1
0
Fork 0
mirror of synced 2024-06-03 03:04:33 +12:00

Made get_all_commands available

This commit is contained in:
Phxntxm 2017-02-12 15:54:21 -06:00
parent a40ca62583
commit 31ed6b32fb
2 changed files with 2 additions and 2 deletions

View file

@ -90,7 +90,7 @@ class Core:
example = None
result = None
# Also get the subcommands for this command, if they exist
subcommands = [x for x in utils._get_all_commands(cmd) if x != cmd.qualified_name]
subcommands = [x for x in utils.get_all_commands(cmd) if x != cmd.qualified_name]
# The rest is simple, create the embed, set the thumbail to me, add all fields if they exist
embed = discord.Embed(title=cmd.qualified_name)

View file

@ -19,7 +19,7 @@ def get_all_commands(bot):
return all_commands
def _get_all_commands(command):
def get_all_commands(command):
yield command.qualified_name
try:
non_aliases = set(cmd.name for cmd in command.commands.values())