aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/help.py
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-05-03 13:00:23 -0400
committerGravatar ToxicKidz <[email protected]>2021-05-03 13:00:23 -0400
commitfa45ba761a4176a32e6ed8c55bd432876dd69aa6 (patch)
treebcdd5b195bbc703cf917d65af6e184ea2a2c21b2 /bot/exts/evergreen/help.py
parentfix: Don't pass bot to __init__ (diff)
parentMerge pull request #717 from ToxicKidz/pr-template-spelling-fix (diff)
fix: Resolve Merge Conflicts
Diffstat (limited to 'bot/exts/evergreen/help.py')
-rw-r--r--bot/exts/evergreen/help.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/evergreen/help.py b/bot/exts/evergreen/help.py
index 91147243..f557e42e 100644
--- a/bot/exts/evergreen/help.py
+++ b/bot/exts/evergreen/help.py
@@ -289,7 +289,9 @@ class HelpSession:
parent = self.query.full_parent_name + ' ' if self.query.parent else ''
paginator.add_line(f'**```{prefix}{parent}{signature}```**')
- aliases = ', '.join(f'`{a}`' for a in self.query.aliases)
+ aliases = [f"`{alias}`" if not parent else f"`{parent} {alias}`" for alias in self.query.aliases]
+ aliases += [f"`{alias}`" for alias in getattr(self.query, "root_aliases", ())]
+ aliases = ", ".join(sorted(aliases))
if aliases:
paginator.add_line(f'**Can also use:** {aliases}\n')