mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-09-21 03:27:42 +00:00
Fix nested UI item parent state
This commit is contained in:
@@ -206,6 +206,10 @@ class Item(Generic[V]):
|
||||
def _update_view(self, view) -> None:
|
||||
self._view = view
|
||||
|
||||
def _detach_view(self) -> None:
|
||||
self._update_view(None)
|
||||
self._parent = None
|
||||
|
||||
def copy(self) -> Self:
|
||||
return copy.deepcopy(self)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user