aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/core/help.py
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2022-08-19 19:34:20 +0100
committerGravatar GitHub <[email protected]>2022-08-19 19:34:20 +0100
commit950a7fb290fe4e8acfab33847d3f2edaec421d93 (patch)
tree1b53a1d47e5a18a2cc03ff8a2c0a89491e7d85b2 /bot/exts/core/help.py
parentMerge pull request #1088 from ShakyaMajumdar/feat/latex-enhancement (diff)
parentRequire dm delete command be invoceed by replying to a lance message (diff)
Merge pull request #1049 from python-discord/bookmark-enhancements
Diffstat (limited to 'bot/exts/core/help.py')
-rw-r--r--bot/exts/core/help.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bot/exts/core/help.py b/bot/exts/core/help.py
index b5df70ca..eb7a9762 100644
--- a/bot/exts/core/help.py
+++ b/bot/exts/core/help.py
@@ -13,6 +13,7 @@ from bot import constants
from bot.bot import Bot
from bot.constants import Emojis
from bot.utils.commands import get_command_suggestions
+from bot.utils.decorators import whitelist_override
from bot.utils.pagination import FIRST_EMOJI, LAST_EMOJI, LEFT_EMOJI, LinePaginator, RIGHT_EMOJI
DELETE_EMOJI = Emojis.trashcan
@@ -286,7 +287,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,8 +314,9 @@ 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]
aliases += [f"`{alias}`" for alias in getattr(self.query, "root_aliases", ())]
aliases = ", ".join(sorted(aliases))
@@ -511,6 +513,7 @@ class Help(DiscordCog):
"""Custom Embed Pagination Help feature."""
@commands.command("help")
+ @whitelist_override(allow_dm=True)
async def new_help(self, ctx: Context, *commands) -> None:
"""Shows Command Help."""
try: