mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-09 11:31:58 +00:00
[commands] Fix HybridCommandGroup._update_copy to update fallback
Fix #8461
This commit is contained in:
parent
6981eb69c4
commit
edfacb36cf
@ -706,6 +706,11 @@ class HybridGroup(Group[CogT, P, T]):
|
|||||||
# This is a very lazy copy because the CogMeta will properly copy it
|
# This is a very lazy copy because the CogMeta will properly copy it
|
||||||
# with bindings and all later
|
# with bindings and all later
|
||||||
copy.app_command._children = self.app_command._children.copy()
|
copy.app_command._children = self.app_command._children.copy()
|
||||||
|
|
||||||
|
# Ensure the copy's fallback wraps the copy
|
||||||
|
if copy._fallback_command and self._fallback_command:
|
||||||
|
copy._fallback_command.wrapped = copy
|
||||||
|
|
||||||
return copy
|
return copy
|
||||||
|
|
||||||
def autocomplete(
|
def autocomplete(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user