Skip to content

Commit

Permalink
Fix Polls limiting duration at 7 days
Browse files Browse the repository at this point in the history
  • Loading branch information
DA-344 authored Jul 21, 2024
1 parent 04b2e49 commit ff638d3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions discord/poll.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,6 @@ def _from_data(cls, *, data: PollPayload, message: Message, state: ConnectionSta
# self.created_at = message.created_at
# duration = self.created_at - expiry

if (duration.total_seconds() / 3600) > 168: # As the duration may exceed little milliseconds then we fix it
duration = datetime.timedelta(days=7)

self = cls(
duration=duration,
multiple=multiselect,
Expand Down

0 comments on commit ff638d3

Please sign in to comment.