Skip to content

Commit c0022f1

Browse files
authored
v2
1 parent b322b42 commit c0022f1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

discord/ui/designer_view.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,12 +369,11 @@ def is_persistent(self) -> bool:
369369
)
370370

371371
def is_components_v2(self) -> bool:
372-
"""Whether the view contains V2 components.
372+
"""Whether the view contains V2 components or requires the V2 flag.
373373
374374
A view containing V2 components cannot be sent alongside message content or embeds.
375-
This always returns ``True`` in :class:`DesignerView`, regardless of its :attr:`items`
376375
"""
377-
return True
376+
return len(self.children) > 5 or any(i.is_components_v2() for i in self.children)
378377

379378
def disable_all_items(self, *, exclusions: list[Item[V]] | None = None) -> None:
380379
"""

0 commit comments

Comments
 (0)