diff options
| author | 2020-08-22 20:52:21 -0700 | |
|---|---|---|
| committer | 2020-08-22 20:54:29 -0700 | |
| commit | fa92df15a4644d01256edeb440242ae92dc8adf0 (patch) | |
| tree | 69f9dfe2e5e1b31268b3eb6fefc44f45b76b4f43 | |
| parent | Include root aliases in the command name conflict test (diff) | |
Help: include root aliases in output
| -rw-r--r-- | bot/cogs/help.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/cogs/help.py b/bot/cogs/help.py index 3d1d6fd10..25ce4ae0f 100644 --- a/bot/cogs/help.py +++ b/bot/cogs/help.py @@ -189,7 +189,9 @@ class CustomHelpCommand(HelpCommand): command_details = f"**```{PREFIX}{name} {command.signature}```**\n" # show command aliases - aliases = ", ".join(f"`{alias}`" if not parent else f"`{parent} {alias}`" for alias in command.aliases) + aliases = [f"`{alias}`" if not parent else f"`{parent} {alias}`" for alias in command.aliases] + aliases += [f"`{alias}`" for alias in getattr(command, "root_aliases", ())] + aliases = ", ".join(sorted(aliases)) if aliases: command_details += f"**Can also use:** {aliases}\n\n" |