Skip to content

Commit 7a66cb7

Browse files
committed
that *still* aint right
1 parent 6e36204 commit 7a66cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/ui/file_upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def max_values(self) -> int | None:
147147
def max_values(self, value: int | None):
148148
if value and not isinstance(value, int):
149149
raise TypeError(f"max_values must be None or int not {value.__class__.__name__}") # type: ignore
150-
if value and (value <= 0 or value > 10):
150+
if value and (value < 1 or value > 10):
151151
raise ValueError("max_values must be between 1 and 10")
152152
self._underlying.max_values = value
153153

0 commit comments

Comments
 (0)