Browse Source

Some docs fixes for polls

pull/10109/head
DA344 1 year ago
committed by dolfies
parent
commit
b6e9767eff
  1. 4
      discord/poll.py

4
discord/poll.py

@ -202,7 +202,7 @@ class PollAnswer:
@property @property
def poll(self) -> Poll: def poll(self) -> Poll:
""":class:`Poll`: Returns the parent poll of this answer""" """:class:`Poll`: Returns the parent poll of this answer."""
return self._poll return self._poll
def _to_dict(self) -> PollAnswerPayload: def _to_dict(self) -> PollAnswerPayload:
@ -431,7 +431,7 @@ class Poll:
@property @property
def answers(self) -> List[PollAnswer]: def answers(self) -> List[PollAnswer]:
"""List[:class:`PollAnswer`]: Returns a read-only copy of the answers""" """List[:class:`PollAnswer`]: Returns a read-only copy of the answers."""
return list(self._answers.values()) return list(self._answers.values())
@property @property

Loading…
Cancel
Save