[commands] Ensure hybrid app command receives copied wrapper command

This commit is contained in:
Rapptz 2022-04-12 17:45:58 -04:00
parent 393fdde037
commit 1931b0eb75

View File

@ -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(