Skip to content

Commit ff638d3

Browse files
authored
Fix Polls limiting duration at 7 days
1 parent 04b2e49 commit ff638d3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

discord/poll.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,6 @@ def _from_data(cls, *, data: PollPayload, message: Message, state: ConnectionSta
388388
# self.created_at = message.created_at
389389
# duration = self.created_at - expiry
390390

391-
if (duration.total_seconds() / 3600) > 168: # As the duration may exceed little milliseconds then we fix it
392-
duration = datetime.timedelta(days=7)
393-
394391
self = cls(
395392
duration=duration,
396393
multiple=multiselect,

0 commit comments

Comments
 (0)