We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11e311d commit 32ed673Copy full SHA for 32ed673
discord/poll.py
@@ -145,7 +145,7 @@ def count(self) -> int | None:
145
return None
146
if self._poll.results is None:
147
return None # Unknown vote count.
148
- _count = self._poll.results and utils.find(lambda p: p.id == id, self._poll.results.answer_counts)
+ _count = self._poll.results and utils.find(lambda p: p.id == self.id, self._poll.results.answer_counts)
149
if _count:
150
return _count.count
151
return 0 # If an answer isn't in answer_counts, it has 0 votes.
0 commit comments