Making ` not appear in text when command has no signature

pull/8/head
sgoudham 4 years ago
parent 31becc8125
commit 5bfe9d408c

@ -391,10 +391,12 @@ 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)
if command.usage and command.signature: if command.usage:
self.title = f"{command.qualified_name} | {aliases} {command.signature}" self.title = f"{command.qualified_name} | {aliases} {command.signature}"
else: elif command.signature:
self.title = f"{command.qualified_name} | {aliases} `{command.signature}`" self.title = f"{command.qualified_name} | {aliases} `{command.signature}`"
else:
self.title = f"{command.qualified_name} | {aliases}"
else: else:
self.title = f"{command.qualified_name} `{command.signature}`" self.title = f"{command.qualified_name} `{command.signature}`"
else: else:

Loading…
Cancel
Save