Skip to content

Commit bb7445f

Browse files
LawMixersilasary
andauthored
update max poll duration (#1709)
7 -> 32 days Co-authored-by: Katelyn Gigante <clockwork.singularity@gmail.com>
1 parent 8071e4e commit bb7445f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

interactions/client/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def get_logger() -> logging.Logger:
135135
EMBED_FIELD_VALUE_LENGTH = 1024
136136

137137
POLL_MAX_ANSWERS = 10
138-
POLL_MAX_DURATION_HOURS = 168
138+
POLL_MAX_DURATION_HOURS = 768
139139

140140

141141
class Singleton(type):

interactions/models/discord/poll.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class Poll(DictSerializationMixin):
9292
answers: list[PollAnswer] = attrs.field(repr=False, factory=list, converter=PollAnswer.from_list)
9393
"""Each of the answers available in the poll, up to 10."""
9494
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."""
9696
allow_multiselect: bool = attrs.field(repr=False, default=False, metadata=no_export_meta)
9797
"""Whether a user can select multiple answers."""
9898
layout_type: PollLayoutType = attrs.field(repr=False, default=PollLayoutType.DEFAULT, converter=PollLayoutType)
@@ -101,7 +101,7 @@ class Poll(DictSerializationMixin):
101101
"""The results of the poll, if the polls is finished."""
102102

103103
_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."""
105105

106106
@classmethod
107107
def create(

0 commit comments

Comments
 (0)