aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar miki55555115 <[email protected]>2023-05-08 19:00:50 +0200
committerGravatar miki55555115 <[email protected]>2023-05-08 19:00:50 +0200
commitf499a89982a63f97d8221b0abf9d4fa313deb438 (patch)
treea3fd0628680cf4e63c54c13eb18f6717846135ca
parentFix extra space in .help command signature (diff)
Simplify command params return
-rw-r--r--bot/exts/core/help.py4
1 files changed, 1 insertions, 3 deletions
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."""