mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-08-30 06:55:35 +00:00
[commands] Ensure hybrid app command receives copied wrapper command
This commit is contained in:
parent
393fdde037
commit
1931b0eb75
@ -390,6 +390,7 @@ class HybridCommand(Command[CogT, P, T]):
|
|||||||
def _ensure_assignment_on_copy(self, other: Self) -> Self:
|
def _ensure_assignment_on_copy(self, other: Self) -> Self:
|
||||||
copy = super()._ensure_assignment_on_copy(other)
|
copy = super()._ensure_assignment_on_copy(other)
|
||||||
copy.app_command = self.app_command.copy()
|
copy.app_command = self.app_command.copy()
|
||||||
|
copy.app_command.wrapped = copy
|
||||||
return copy
|
return copy
|
||||||
|
|
||||||
def autocomplete(
|
def autocomplete(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user