From 13a38b9f75eefde92c5e9b105930b83f0812bbc7 Mon Sep 17 00:00:00 2001 From: haru2503 Date: Fri, 27 Mar 2026 14:52:19 +0700 Subject: [PATCH] Update `poll` documentation to list supported poll durations --- discord/poll.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/discord/poll.py b/discord/poll.py index a191319d9..801570cca 100644 --- a/discord/poll.py +++ b/discord/poll.py @@ -330,7 +330,7 @@ class Poll: question: Union[:class:`PollMedia`, :class:`str`] The poll's displayed question. The text can be up to 300 characters. duration: :class:`datetime.timedelta` - The duration of the poll. Duration must be in hours. + The duration of the poll. Duration must be 1 hour, 4 hours, 8 hours, 24 hours, 3 days, 1 week, or 2 weeks. multiple: :class:`bool` Whether users are allowed to select more than one answer. Defaults to ``False``. @@ -341,6 +341,9 @@ class Poll: ----------- duration: :class:`datetime.timedelta` The duration of the poll. + + Discord only supports specific durations: 1 hour, 4 hours, 8 hours, 24 hours, 3 days, 1 week, or 2 weeks. + multiple: :class:`bool` Whether users are allowed to select more than one answer. layout_type: :class:`PollLayoutType`