mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
fix(PollAnswer): fetchVoters route changed to MessageManager (#10251)
Update PollAnswer.js
This commit is contained in:
@@ -77,7 +77,7 @@ class PollAnswer extends Base {
|
|||||||
* @returns {Promise<Collection<Snowflake, User>>}
|
* @returns {Promise<Collection<Snowflake, User>>}
|
||||||
*/
|
*/
|
||||||
fetchVoters({ after, limit } = {}) {
|
fetchVoters({ after, limit } = {}) {
|
||||||
return this.poll.message.channel.fetchPollAnswerVoters({
|
return this.poll.message.channel.messages.fetchPollAnswerVoters({
|
||||||
messageId: this.poll.message.id,
|
messageId: this.poll.message.id,
|
||||||
answerId: this.id,
|
answerId: this.id,
|
||||||
after,
|
after,
|
||||||
|
|||||||
Reference in New Issue
Block a user