Androz2091 / discord-giveaways

🎉 Complete framework to facilitate the creation of giveaways using discord.js
https://discord-giveaways.js.org
MIT License
335 stars 127 forks source link

users.array is not a function - v13 #360

Closed alima566 closed 3 years ago

alima566 commented 3 years ago

Describe the bug
When drawing a winner for a giveaway, I get a users.array is not a function error.

Error

0|index  | TypeError: users.array is not a function
0|index  |     at Giveaway.roll (/root/bot/node_modules/discord-giveaways/src/Giveaway.js:464:55)
0|index  |     at processTicksAndRejections (node:internal/process/task_queues:96:5)
0|index  |     at async /root/bot/node_modules/discord-giveaways/src/Giveaway.js:520:29

To Reproduce
Start a giveaway and wait for the timer to run out. When the bot is about to select a winner, the error will occur.