From 9d3b1f14cd3750a4c7fb3434d961674a3f5d451f Mon Sep 17 00:00:00 2001 From: miki55555115 Date: Sun, 7 May 2023 19:51:45 +0200 Subject: Fix extra space in .help command signature --- bot/exts/core/help.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bot/exts/core/help.py') diff --git a/bot/exts/core/help.py b/bot/exts/core/help.py index 30deaff4..bac391b5 100644 --- a/bot/exts/core/help.py +++ b/bot/exts/core/help.py @@ -286,8 +286,9 @@ class HelpSession: # 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.""" -- cgit v1.2.3 From f499a89982a63f97d8221b0abf9d4fa313deb438 Mon Sep 17 00:00:00 2001 From: miki55555115 Date: Mon, 8 May 2023 19:00:50 +0200 Subject: Simplify command params return --- bot/exts/core/help.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bot/exts/core/help.py') diff --git a/bot/exts/core/help.py b/bot/exts/core/help.py index bac391b5..f86eb636 100644 --- a/bot/exts/core/help.py +++ b/bot/exts/core/help.py @@ -286,9 +286,7 @@ class HelpSession: # 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.""" -- cgit v1.2.3