From 1931b0eb750f8d0db4967533c5179b3bc86c44e7 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 12 Apr 2022 17:45:58 -0400 Subject: [PATCH] [commands] Ensure hybrid app command receives copied wrapper command --- discord/ext/commands/hybrid.py | 1 + 1 file changed, 1 insertion(+) diff --git a/discord/ext/commands/hybrid.py b/discord/ext/commands/hybrid.py index 1261a7b7c..fac7975c0 100644 --- a/discord/ext/commands/hybrid.py +++ b/discord/ext/commands/hybrid.py @@ -390,6 +390,7 @@ class HybridCommand(Command[CogT, P, T]): def _ensure_assignment_on_copy(self, other: Self) -> Self: copy = super()._ensure_assignment_on_copy(other) copy.app_command = self.app_command.copy() + copy.app_command.wrapped = copy return copy def autocomplete(