mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
refactor(PollAnswer)!: remove fetchVoters (#11059)
BREAKING CHANGE: The `PollAnswer#fetchVoters` method has been removed. Use `PollAnswer#voters#fetch` instead. Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
This commit is contained in:
@@ -16,7 +16,7 @@ client.on(Events.ClientReady, async () => {
|
||||
// console.dir(message.poll, { depth: Infinity });
|
||||
|
||||
// const answer = message.poll.answers.first();
|
||||
// const voters = await answer.fetchVoters();
|
||||
// const voters = await answer.voters.fetch();
|
||||
// console.dir(voters);
|
||||
|
||||
const message = await channel.send({
|
||||
|
||||
Reference in New Issue
Block a user