Browse Source
Fix Polls limiting duration at 7 days
pull/9894/head
DA344
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
0 additions and
3 deletions
-
discord/poll.py
|
|
@ -388,9 +388,6 @@ class Poll: |
|
|
|
# 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, |
|
|
|