mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +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
|
||||
# with bindings and all later
|
||||
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
|
||||
|
||||
def autocomplete(
|
||||
|
Loading…
x
Reference in New Issue
Block a user