Fix usage not showing command name

This commit is contained in:
Ave Ozkal 2019-11-06 01:59:29 +03:00
parent 3ed010a4ce
commit 527f55e6dd
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -170,7 +170,7 @@ async def on_command_error(ctx, error):
# Nothing to do when command is not found. # Nothing to do when command is not found.
return return
help_text = f"Usage of this command is: ```{ctx.prefix}"\ help_text = f"Usage of this command is: ```{ctx.prefix}{ctx.command.name} "\
f"{ctx.command.signature}```\nPlease see `{ctx.prefix}help "\ f"{ctx.command.signature}```\nPlease see `{ctx.prefix}help "\
f"{ctx.command.name}` for more info about this command." f"{ctx.command.name}` for more info about this command."
if isinstance(error, commands.BadArgument): if isinstance(error, commands.BadArgument):