Skip to content

Commit

Permalink
fix(PollAnswer): fetchVoters route changed to MessageManager (#10251)
Browse files Browse the repository at this point in the history
Update PollAnswer.js
  • Loading branch information
XCraftTM authored May 4, 2024
1 parent f2794e1 commit 30d79e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/PollAnswer.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class PollAnswer extends Base {
* @returns {Promise<Collection<Snowflake, User>>}
*/
fetchVoters({ after, limit } = {}) {
return this.poll.message.channel.fetchPollAnswerVoters({
return this.poll.message.channel.messages.fetchPollAnswerVoters({
messageId: this.poll.message.id,
answerId: this.id,
after,
Expand Down

0 comments on commit 30d79e8

Please sign in to comment.