Browse Source
Fix inaccurate total_children_count property in modals
pull/10341/head
Sacul
8 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
0 deletions
-
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 |
|
|
|
|