From 8f2cb6070026bd2be2fd1fe35f978b408490879b Mon Sep 17 00:00:00 2001 From: Sacul <183588943+Sacul0457@users.noreply.github.com> Date: Tue, 28 Oct 2025 19:51:15 +0800 Subject: [PATCH] Fix inaccurate total_children_count property in modals --- discord/ui/label.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/discord/ui/label.py b/discord/ui/label.py index cb93cd0d1..f9313f53f 100644 --- a/discord/ui/label.py +++ b/discord/ui/label.py @@ -139,3 +139,8 @@ class Label(Item[V]): def is_dispatchable(self) -> bool: return False + + @property + def _total_count(self) -> int: + # Count the component and ourselves + return 2