Skip to content

Commit

Permalink
chore: Add versionchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
DA-344 committed Dec 9, 2024
1 parent 547f976 commit 1bd0d94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion discord/poll.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,14 +536,17 @@ 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
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
Expand Down

0 comments on commit 1bd0d94

Please sign in to comment.