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