From 9d3b1f14cd3750a4c7fb3434d961674a3f5d451f Mon Sep 17 00:00:00 2001 From: miki55555115 Date: Sun, 7 May 2023 19:51:45 +0200 Subject: [PATCH 1/2] Fix extra space in .help command signature --- bot/exts/core/help.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot/exts/core/help.py b/bot/exts/core/help.py index 30deaff487..bac391b5d5 100644 --- a/bot/exts/core/help.py +++ b/bot/exts/core/help.py @@ -286,8 +286,9 @@ def _get_command_params(self, cmd: Command) -> str: # if required else: results.append(f"<{name}>") - - return f"{cmd.qualified_name} {' '.join(results)}" + if results: + return f"{cmd.qualified_name} {' '.join(results)}" + return cmd.qualified_name 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.""" From f499a89982a63f97d8221b0abf9d4fa313deb438 Mon Sep 17 00:00:00 2001 From: miki55555115 Date: Mon, 8 May 2023 19:00:50 +0200 Subject: [PATCH 2/2] Simplify command params return --- bot/exts/core/help.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bot/exts/core/help.py b/bot/exts/core/help.py index bac391b5d5..f86eb63611 100644 --- a/bot/exts/core/help.py +++ b/bot/exts/core/help.py @@ -286,9 +286,7 @@ def _get_command_params(self, cmd: Command) -> str: # if required else: results.append(f"<{name}>") - if results: - return f"{cmd.qualified_name} {' '.join(results)}" - return cmd.qualified_name + return " ".join([cmd.qualified_name, *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."""