mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Fix bug when app commands would not have a module attribute set on copy
This commit is contained in:
parent
d63fd578c2
commit
42beec9fa9
@ -401,6 +401,7 @@ class Command(Generic[GroupT, P, T]):
|
||||
copy.parent = self.parent
|
||||
copy.on_error = self.on_error
|
||||
copy._params = self._params.copy()
|
||||
copy.module = self.module
|
||||
copy.binding = binding
|
||||
return copy
|
||||
|
||||
@ -774,6 +775,7 @@ class Group:
|
||||
copy._guild_ids = self._guild_ids
|
||||
copy.description = self.description
|
||||
copy.parent = self.parent
|
||||
copy.module = self.module
|
||||
copy._attr = self._attr
|
||||
copy._children = {child.name: child._copy_with_binding(binding) for child in self._children.values()}
|
||||
return copy
|
||||
|
Loading…
x
Reference in New Issue
Block a user