Skip to content

Commit

Permalink
Update eventHandler.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Starman3787 committed Nov 21, 2024
1 parent 4c5b17a commit 65474eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gateway/eventHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ class EventHandler {

cacheManager.fetchWithRules(data.message_id).then((message) => {
if (message) {
message.poll.results._addVote(data.user_id, data.answer_id);
message.poll._results._addVote(data.user_id, data.answer_id);
}
this.#_client.emit(EVENTS.MESSAGE_POLL_VOTE_ADD, data);
});
Expand All @@ -910,7 +910,7 @@ class EventHandler {

cacheManager.fetchWithRules(data.message_id).then((message) => {
if (message) {
message.poll.results._removeVote(data.user_id, data.answer_id);
message.poll._results._removeVote(data.user_id, data.answer_id);
}
this.#_client.emit(EVENTS.MESSAGE_POLL_VOTE_REMOVE, data);
});
Expand Down

0 comments on commit 65474eb

Please sign in to comment.