[commands] Ensure Command.extras are copied

Fix #8309
This commit is contained in:
Rapptz 2022-08-05 21:56:51 -04:00
parent d707019348
commit eb3bc7102b

View File

@ -554,6 +554,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: