Adding another exception case to the help command. Making it so that it's correctly formatted

pull/8/head
sgoudham 4 years ago
parent de15276946
commit 8622a7f63e

@ -391,7 +391,10 @@ class HelpPaginator(Pages):
if not isinstance(command, discord.ext.commands.Group): if not isinstance(command, discord.ext.commands.Group):
if command.aliases: if command.aliases:
aliases = " | ".join(command.aliases) aliases = " | ".join(command.aliases)
self.title = f"{command.qualified_name} | {aliases} `{command.signature}`" if command.usage:
self.title = f"{command.qualified_name} | {aliases} {command.signature}"
else:
self.title = f"{command.qualified_name} | {aliases} `{command.signature}`"
else: else:
self.title = f"{command.qualified_name} `{command.signature}`" self.title = f"{command.qualified_name} `{command.signature}`"
else: else:

Loading…
Cancel
Save