diff --git a/src/gateway/eventHandler.js b/src/gateway/eventHandler.js index 3fb68a41..cb1f83ba 100644 --- a/src/gateway/eventHandler.js +++ b/src/gateway/eventHandler.js @@ -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); }); @@ -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); });