Skip to content

Commit 32ed673

Browse files
Paillat-devCopilot
andauthored
Update discord/poll.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Paillat <jeremiecotti@ik.me>
1 parent 11e311d commit 32ed673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/poll.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def count(self) -> int | None:
145145
return None
146146
if self._poll.results is None:
147147
return None # Unknown vote count.
148-
_count = self._poll.results and utils.find(lambda p: p.id == id, self._poll.results.answer_counts)
148+
_count = self._poll.results and utils.find(lambda p: p.id == self.id, self._poll.results.answer_counts)
149149
if _count:
150150
return _count.count
151151
return 0 # If an answer isn't in answer_counts, it has 0 votes.

0 commit comments

Comments
 (0)