Skip to content

Commit 8f2cb60

Browse files
authored
Fix inaccurate total_children_count property in modals
1 parent 09f748d commit 8f2cb60

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

discord/ui/label.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,8 @@ def type(self) -> Literal[ComponentType.label]:
139139

140140
def is_dispatchable(self) -> bool:
141141
return False
142+
143+
@property
144+
def _total_count(self) -> int:
145+
# Count the component and ourselves
146+
return 2

0 commit comments

Comments
 (0)