aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/core/help.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-07-10 12:50:41 +0100
committerGravatar Chris Lovering <[email protected]>2022-08-19 10:28:03 +0100
commitc4b45fe512f71776f8d4ef6698b88ed8bc4606c9 (patch)
tree3fc513d91298cf51726c78f50e1a6a193ba26f65 /bot/exts/core/help.py
parentfixup: Improved docstring and error message in bookmark command (diff)
Update help command to work with root_aliases
Specifying root_aliases causes bookmark delete to be registered as a command rather than subcommand, which causes it to be listed even though subcommands usually aren't, and this isn't done correctly. Co-authored-by: wookie184 <[email protected]>
Diffstat (limited to 'bot/exts/core/help.py')
-rw-r--r--bot/exts/core/help.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/core/help.py b/bot/exts/core/help.py
index b5df70ca..7d8066df 100644
--- a/bot/exts/core/help.py
+++ b/bot/exts/core/help.py
@@ -286,7 +286,7 @@ class HelpSession:
else:
results.append(f"<{name}>")
- return f"{cmd.name} {' '.join(results)}"
+ return f"{cmd.qualified_name} {' '.join(results)}"
async def build_pages(self) -> None:
"""Builds the list of content pages to be paginated through in the help message, as a list of str."""
@@ -313,6 +313,8 @@ class HelpSession:
prefix = constants.Client.prefix
signature = self._get_command_params(self.query)
+ paginator.add_line(f"**```\n{prefix}{signature}\n```**")
+
parent = self.query.full_parent_name + " " if self.query.parent else ""
paginator.add_line(f"**```\n{prefix}{parent}{signature}\n```**")
aliases = [f"`{alias}`" if not parent else f"`{parent}{alias}`" for alias in self.query.aliases]