Browse Source
fix: Container children not being added to view store
pull/10166/head
DA344
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
0 deletions
-
discord/ui/container.py
|
|
@ -85,6 +85,7 @@ class Container(Item[V]): |
|
|
|
|
|
|
|
__container_children_items__: ClassVar[List[Union[ItemCallbackType[Any, Any], Item[Any]]]] = [] |
|
|
|
__pending_view__: ClassVar[bool] = True |
|
|
|
__discord_ui_container__: ClassVar[bool] = True |
|
|
|
|
|
|
|
def __init__( |
|
|
|
self, |
|
|
@ -132,6 +133,9 @@ class Container(Item[V]): |
|
|
|
|
|
|
|
return children |
|
|
|
|
|
|
|
def is_dispatchable(self) -> bool: |
|
|
|
return True |
|
|
|
|
|
|
|
def __init_subclass__(cls) -> None: |
|
|
|
super().__init_subclass__() |
|
|
|
|
|
|
|