File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def get_logger() -> logging.Logger:
135
135
EMBED_FIELD_VALUE_LENGTH = 1024
136
136
137
137
POLL_MAX_ANSWERS = 10
138
- POLL_MAX_DURATION_HOURS = 168
138
+ POLL_MAX_DURATION_HOURS = 768
139
139
140
140
141
141
class Singleton (type ):
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ class Poll(DictSerializationMixin):
92
92
answers : list [PollAnswer ] = attrs .field (repr = False , factory = list , converter = PollAnswer .from_list )
93
93
"""Each of the answers available in the poll, up to 10."""
94
94
expiry : Timestamp = attrs .field (repr = False , default = MISSING , converter = optional (timestamp_converter ))
95
- """Number of hours the poll is open for, up to 7 days."""
95
+ """Number of hours the poll is open for, up to 32 days."""
96
96
allow_multiselect : bool = attrs .field (repr = False , default = False , metadata = no_export_meta )
97
97
"""Whether a user can select multiple answers."""
98
98
layout_type : PollLayoutType = attrs .field (repr = False , default = PollLayoutType .DEFAULT , converter = PollLayoutType )
@@ -101,7 +101,7 @@ class Poll(DictSerializationMixin):
101
101
"""The results of the poll, if the polls is finished."""
102
102
103
103
_duration : int = attrs .field (repr = False , default = 0 )
104
- """How long, in hours, the poll will be open for (up to 7 days). This is only used when creating polls."""
104
+ """How long, in hours, the poll will be open for (up to 32 days). This is only used when creating polls."""
105
105
106
106
@classmethod
107
107
def create (
You can’t perform that action at this time.
0 commit comments