File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
interactions/models/discord Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ class Poll(DictSerializationMixin):
81
81
"""The question of the poll. Only text media is supported."""
82
82
answers : list [PollAnswer ] = attrs .field (repr = False , factory = list , converter = PollAnswer .from_list )
83
83
"""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 ) )
85
85
"""Number of hours the poll is open for, up to 7 days."""
86
86
allow_multiselect : bool = attrs .field (repr = False , default = False , metadata = no_export_meta )
87
87
"""Whether a user can select multiple answers."""
You can’t perform that action at this time.
0 commit comments