mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +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:
|
||||
copy = super()._ensure_assignment_on_copy(other)
|
||||
copy.app_command = self.app_command.copy()
|
||||
copy.app_command.wrapped = copy
|
||||
return copy
|
||||
|
||||
def autocomplete(
|
||||
|
Loading…
x
Reference in New Issue
Block a user