Made get_all_commands available
This commit is contained in:
parent
a40ca62583
commit
31ed6b32fb
|
@ -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)
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue