Skip to content

Commit f408d48

Browse files
committed
fix: make converter optional
1 parent 2dcdd6f commit f408d48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interactions/models/discord/poll.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class Poll(DictSerializationMixin):
8181
"""The question of the poll. Only text media is supported."""
8282
answers: list[PollAnswer] = attrs.field(repr=False, factory=list, converter=PollAnswer.from_list)
8383
"""Each of the answers available in the poll, up to 10."""
84-
expiry: Timestamp = attrs.field(repr=False, default=MISSING, converter=timestamp_converter)
84+
expiry: Timestamp = attrs.field(repr=False, default=MISSING, converter=optional(timestamp_converter))
8585
"""Number of hours the poll is open for, up to 7 days."""
8686
allow_multiselect: bool = attrs.field(repr=False, default=False, metadata=no_export_meta)
8787
"""Whether a user can select multiple answers."""

0 commit comments

Comments
 (0)