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 5498e18 commit 7816ec2Copy full SHA for 7816ec2
packages/discord.js/src/client/actions/MessagePollVoteAdd.js
@@ -13,7 +13,7 @@ class MessagePollVoteAddAction extends Action {
13
14
const { poll } = message;
15
16
- const answer = poll.answers.get(data.answer_id);
+ const answer = poll?.answers.get(data.answer_id);
17
if (!answer) return false;
18
19
answer.voteCount++;
packages/discord.js/src/client/actions/MessagePollVoteRemove.js
@@ -13,7 +13,7 @@ class MessagePollVoteRemoveAction extends Action {
answer.voteCount--;
0 commit comments