From 547f97646fe21c3a5047ecec6cfb2bb6b54ae84d Mon Sep 17 00:00:00 2001 From: DA-344 <108473820+DA-344@users.noreply.github.com> Date: Sun, 8 Dec 2024 15:47:35 +0100 Subject: [PATCH] chore: Add versionadded's --- discord/poll.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/discord/poll.py b/discord/poll.py index fae4aa88491a..8b0dd548f9d3 100644 --- a/discord/poll.py +++ b/discord/poll.py @@ -225,6 +225,8 @@ def victor(self) -> bool: """:class:`bool`: Whether the answer is the one that had the most votes when the poll ended. + .. versionadded:: 2.5 + .. note:: If the poll has not ended, this will always return ``False``. @@ -487,11 +489,11 @@ def answers(self) -> List[PollAnswer]: def victor_answer_id(self) -> Optional[int]: """Optional[:class:`int`]: The victor answer ID. + .. versionadded:: 2.5 + .. note:: This will **always** be ``None`` for polls that have not yet finished. - - .. versionadded:: 2.5 """ return self._victor_answer_id @@ -499,11 +501,11 @@ def victor_answer_id(self) -> Optional[int]: def victor_answer(self) -> Optional[PollAnswer]: """Optional[:class:`PollAnswer`]: The victor answer. + .. versionadded:: 2.5 + .. note:: This will **always** be ``None`` for polls that have not yet finished. - - .. versionadded:: 2.5 """ if self.victor_answer_id is None: return None