From 1bd0d94e880d67c2bca20f63971d0d821752e7d2 Mon Sep 17 00:00:00 2001 From: DA-344 <108473820+DA-344@users.noreply.github.com> Date: Mon, 9 Dec 2024 10:36:30 +0100 Subject: [PATCH] chore: Add versionchanged --- discord/poll.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/discord/poll.py b/discord/poll.py index 8b0dd548f9d3..14323f71b182 100644 --- a/discord/poll.py +++ b/discord/poll.py @@ -536,7 +536,7 @@ def created_at(self) -> Optional[datetime.datetime]: @property def message(self) -> Optional[Message]: - """:class:`Message`: The message this poll is from.""" + """Optional[:class:`Message`]: The message this poll is from.""" return self._message @property @@ -544,6 +544,9 @@ def total_votes(self) -> int: """:class:`int`: Returns the sum of all the answer votes. If the poll has not yet finished, this is an approximate vote count. + + .. versionchanged:: 2.5 + This now returns an exact vote count when updated from its poll results message. """ if self._total_votes is not None: return self._total_votes