From 05d4f7f9620ef33635d6ac965b26528e09cdaf5b Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 29 Apr 2019 00:08:08 -0400 Subject: [PATCH] [commands] Fix Context.send_help to work with the copied HelpCommand --- discord/ext/commands/context.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py index edce974a4..e988eb3da 100644 --- a/discord/ext/commands/context.py +++ b/discord/ext/commands/context.py @@ -261,6 +261,8 @@ class Context(discord.abc.Messageable): if cmd is None: return None + cmd = cmd.copy() + cmd.context = self if len(args) == 0: await cmd.prepare_help_command(self, None) mapping = cmd.get_bot_mapping()