diff options
author | 2021-05-10 01:58:31 +0530 | |
---|---|---|
committer | 2021-05-10 01:58:31 +0530 | |
commit | 2eda11d5110103d65ee684f4626d7c1ae59b32c9 (patch) | |
tree | fbbbcf61ef0797722a1ea8136aaa412cd6283365 /bot/exts/evergreen/help.py | |
parent | Fix Bug:Paginated embed image gets carried to next page (diff) | |
parent | Merge pull request #724 from ToxicKidz/fix/mosaic-command (diff) |
Pull upstream and resolve conflicts.
Diffstat (limited to 'bot/exts/evergreen/help.py')
-rw-r--r-- | bot/exts/evergreen/help.py | 4 |
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') |