Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion interactions/client/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def get_logger() -> logging.Logger:
EMBED_FIELD_VALUE_LENGTH = 1024

POLL_MAX_ANSWERS = 10
POLL_MAX_DURATION_HOURS = 168
POLL_MAX_DURATION_HOURS = 768


class Singleton(type):
Expand Down
4 changes: 2 additions & 2 deletions interactions/models/discord/poll.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class Poll(DictSerializationMixin):
answers: list[PollAnswer] = attrs.field(repr=False, factory=list, converter=PollAnswer.from_list)
"""Each of the answers available in the poll, up to 10."""
expiry: Timestamp = attrs.field(repr=False, default=MISSING, converter=optional(timestamp_converter))
"""Number of hours the poll is open for, up to 7 days."""
"""Number of hours the poll is open for, up to 32 days."""
allow_multiselect: bool = attrs.field(repr=False, default=False, metadata=no_export_meta)
"""Whether a user can select multiple answers."""
layout_type: PollLayoutType = attrs.field(repr=False, default=PollLayoutType.DEFAULT, converter=PollLayoutType)
Expand All @@ -101,7 +101,7 @@ class Poll(DictSerializationMixin):
"""The results of the poll, if the polls is finished."""

_duration: int = attrs.field(repr=False, default=0)
"""How long, in hours, the poll will be open for (up to 7 days). This is only used when creating polls."""
"""How long, in hours, the poll will be open for (up to 32 days). This is only used when creating polls."""

@classmethod
def create(
Expand Down