mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[V3 Help Formatter] Fix help command's error handler (#1237)
This commit is contained in:
parent
d83f14d1b6
commit
de1b135dec
@ -337,6 +337,7 @@ async def help(ctx, *cmds: str):
|
||||
|
||||
|
||||
@help.error
|
||||
async def help_error(self, error, ctx):
|
||||
await self.destination.send('{0.__name__}: {1}'.format(type(error), error))
|
||||
async def help_error(ctx, error):
|
||||
destination = ctx.author if ctx.bot.pm_help else ctx
|
||||
await destination.send('{0.__name__}: {1}'.format(type(error), error))
|
||||
traceback.print_tb(error.original.__traceback__, file=sys.stderr)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user