Browse Source

[commands] Ensure hybrid app command receives copied wrapper command

pull/7881/head
Rapptz 3 years ago
parent
commit
1931b0eb75
  1. 1
      discord/ext/commands/hybrid.py

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

Loading…
Cancel
Save