From de1b135deca85e42e0b536351f8c07bc8ae21126 Mon Sep 17 00:00:00 2001 From: Michael H Date: Sat, 6 Jan 2018 19:26:21 -0500 Subject: [PATCH] [V3 Help Formatter] Fix help command's error handler (#1237) --- redbot/core/help_formatter.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/redbot/core/help_formatter.py b/redbot/core/help_formatter.py index 4088ca545..9d9180105 100644 --- a/redbot/core/help_formatter.py +++ b/redbot/core/help_formatter.py @@ -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)