mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-30 23:30:02 +00:00
Fix Polls limiting duration at 7 days
This commit is contained in:
parent
04b2e494f7
commit
ff638d393d
@ -388,9 +388,6 @@ class Poll:
|
|||||||
# self.created_at = message.created_at
|
# self.created_at = message.created_at
|
||||||
# duration = self.created_at - expiry
|
# 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(
|
self = cls(
|
||||||
duration=duration,
|
duration=duration,
|
||||||
multiple=multiselect,
|
multiple=multiselect,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user