From 93f7265f68541ac1c035d0f7c7615ae467d83494 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Fri, 31 Jul 2020 09:34:30 +0100 Subject: [PATCH] Added handling for more edge cases --- cogs/help.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cogs/help.py b/cogs/help.py index bb843399..2b767723 100644 --- a/cogs/help.py +++ b/cogs/help.py @@ -399,7 +399,13 @@ class HelpPaginator(Pages): else: self.title = f"{command.qualified_name} | {aliases}" else: - self.title = f"{command.qualified_name} `{command.signature}`" + if command.usage: + self.title = f"{command.qualified_name} | {command.signature}" + elif command.signature: + self.title = f"{command.qualified_name} `{command.signature}`" + else: + self.title = f"{command.qualified_name}" + else: if command.aliases: aliases = " | ".join(command.aliases)