From 76666fbcf49cff6ea6dd21dda75d75d7dc5d3c19 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 17 Feb 2024 01:17:31 -0500 Subject: [PATCH] Properly check for maximum number of children --- discord/ui/view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ui/view.py b/discord/ui/view.py index cff11d090..f3eda6a60 100644 --- a/discord/ui/view.py +++ b/discord/ui/view.py @@ -320,7 +320,7 @@ class View: or the row the item is trying to be added to is full. """ - if len(self._children) > 25: + if len(self._children) >= 25: raise ValueError('maximum number of children exceeded') if not isinstance(item, Item):