Skip to content

Commit 8fd981d

Browse files
Update discord/ui/view.py
applying suggestion because is_v2 is not describing enough. Users might be like "huh, v2 views?" Co-authored-by: Paillat <[email protected]> Signed-off-by: Lala Sabathil <[email protected]>
1 parent 044a052 commit 8fd981d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/ui/view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ def is_persistent(self) -> bool:
546546
item.is_persistent() for item in self.children
547547
)
548548

549-
def is_v2(self) -> bool:
549+
def is_components_v2(self) -> bool:
550550
"""Whether the view contains V2 components.
551551
552552
A view containing V2 components may not be sent alongside message content or embeds.

0 commit comments

Comments
 (0)