From 4202ef4c7ea08803b66b7cda25f9ef2031a4f24c Mon Sep 17 00:00:00 2001 From: DA-344 <108473820+DA-344@users.noreply.github.com> Date: Sun, 2 Mar 2025 14:39:49 +0100 Subject: [PATCH] chore: Format ValueError no row.setter to show the maxrow and not 10 --- discord/ui/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ui/item.py b/discord/ui/item.py index aaf15cee6..bbd90464a 100644 --- a/discord/ui/item.py +++ b/discord/ui/item.py @@ -113,7 +113,7 @@ class Item(Generic[V]): elif self._max_row > value >= 0: self._row = value else: - raise ValueError('row cannot be negative or greater than or equal to 10') + raise ValueError(f'row cannot be negative or greater than or equal to {self._max_row}') @property def width(self) -> int: