We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b322b42 commit c0022f1Copy full SHA for c0022f1
discord/ui/designer_view.py
@@ -369,12 +369,11 @@ def is_persistent(self) -> bool:
369
)
370
371
def is_components_v2(self) -> bool:
372
- """Whether the view contains V2 components.
+ """Whether the view contains V2 components or requires the V2 flag.
373
374
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`
376
"""
377
- return True
+ return len(self.children) > 5 or any(i.is_components_v2() for i in self.children)
378
379
def disable_all_items(self, *, exclusions: list[Item[V]] | None = None) -> None:
380
0 commit comments