From f7e97954950ffb0e34238d70813454caa6f1a3ae Mon Sep 17 00:00:00 2001 From: Takagi Tasuku Date: Sun, 12 Feb 2023 16:08:39 +0900 Subject: [PATCH] Call super for __init_subclass__ in View Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com> --- discord/ui/view.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/ui/view.py b/discord/ui/view.py index 58f0f0c7c..19354478f 100644 --- a/discord/ui/view.py +++ b/discord/ui/view.py @@ -157,6 +157,8 @@ class View: __view_children_items__: ClassVar[List[ItemCallbackType[Any, Any]]] = [] def __init_subclass__(cls) -> None: + super().__init_subclass__() + children: Dict[str, ItemCallbackType[Any, Any]] = {} for base in reversed(cls.__mro__): for name, member in base.__dict__.items():