[V3 Help] fix issue with non-existent subcommands (#1565)

This commit is contained in:
palmtree5 2018-05-03 22:19:24 -08:00 committed by GitHub
parent dd4cd0eeb1
commit 2b2dbd25f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,6 +269,13 @@ class Help(formatter.HelpFormatter):
color=color) color=color)
return embed return embed
def cmd_has_no_subcommands(self, ctx, cmd, color=None):
embed = self.simple_embed(
ctx,
title=ctx.bot.command_has_no_subcommands.format(cmd),
color=color
)
return embed
@commands.command() @commands.command()
async def help(ctx, *cmds: str): async def help(ctx, *cmds: str):