From 49e43394783610ca35927921000ff383087ff47c Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 5 Aug 2022 21:56:51 -0400 Subject: [PATCH] [commands] Ensure Command.extras are copied Fix #8309 --- discord/ext/commands/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 4cbf26a27..31b46ece5 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -544,6 +544,7 @@ class Command(_BaseCommand, Generic[CogT, P, T]): def _ensure_assignment_on_copy(self, other: Self) -> Self: other._before_invoke = self._before_invoke other._after_invoke = self._after_invoke + other.extras = self.extras if self.checks != other.checks: other.checks = self.checks.copy() if self._buckets.valid and not other._buckets.valid: