Browse Source

chore: Format ValueError no row.setter to show the maxrow and not 10

pull/10166/head
DA-344 3 months ago
parent
commit
4202ef4c7e
  1. 2
      discord/ui/item.py

2
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:

Loading…
Cancel
Save