aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/ext/commands/context.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py
index edce974a..e988eb3d 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()