We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e36204 commit 7a66cb7Copy full SHA for 7a66cb7
discord/ui/file_upload.py
@@ -147,7 +147,7 @@ def max_values(self) -> int | None:
147
def max_values(self, value: int | None):
148
if value and not isinstance(value, int):
149
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):
+ if value and (value < 1 or value > 10):
151
raise ValueError("max_values must be between 1 and 10")
152
self._underlying.max_values = value
153
0 commit comments