Made sure that if the commmand is a group, it doesn't try to access the command signature

pull/8/head
sgoudham 4 years ago
parent 8d6141c287
commit ad17aa6a95

@ -381,7 +381,10 @@ class HelpPaginator(Pages):
entries = [cmd for cmd in entries if (await _can_run(cmd, ctx)) and not cmd.hidden]
self = cls(ctx, entries)
if not isinstance(command, discord.ext.commands.Group):
self.title = f"{command.qualified_name} `{command.signature}`"
else:
self.title = command.name
if command.description:
self.description = f'{command.description}\n\n{command.help}'

Loading…
Cancel
Save