Skip to content

Commit 1d89fa2

Browse files
plun1331Soheab
andauthored
Apply suggestion from @Soheab
Co-authored-by: Soheab <[email protected]> Signed-off-by: plun1331 <[email protected]>
1 parent 807d4ce commit 1d89fa2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord/components.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,10 +1401,10 @@ def to_dict(self) -> FileUploadComponentPayload:
14011401
if self.id is not None:
14021402
payload["id"] = self.id
14031403

1404-
if self.min_values:
1404+
if self.min_values is not None:
14051405
payload["min_values"] = self.min_values
14061406

1407-
if self.max_values:
1407+
if self.max_values is not None:
14081408
payload["max_values"] = self.max_values
14091409

14101410
if not self.required:

0 commit comments

Comments
 (0)