Androz2091 / discord-giveaways

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

Error in Node Module #166

Closed dylanjamesdev closed 3 years ago

dylanjamesdev commented 3 years ago
    at /Users/dylan/Desktop/Projects/Tritan-Bot/node_modules/discord-giveaways/src/Giveaway.js:306:82
    at Array.some (<anonymous>)
    at Giveaway.checkWinnerEntry (/Users/dylan/Desktop/Projects/Tritan-Bot/node_modules/discord-giveaways/src/Giveaway.js:306:54)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Giveaway.roll (/Users/dylan/Desktop/Projects/Tritan-Bot/node_modules/discord-giveaways/src/Giveaway.js:340:46)
    at async /Users/dylan/Desktop/Projects/Tritan-Bot/node_modules/discord-giveaways/src/Giveaway.js:400:29
Nico105 commented 3 years ago

Ahm, you should have got a error message, shouldn't you? Please provide it.

dylanjamesdev commented 3 years ago

No that error was just on the function being started with the client. The giveaways also end freeze around 22 seconds without finishing.

Nico105 commented 3 years ago

Ahm, you should have got a error message, shouldn't you? Please provide it.

Uncaught Promise Error: TypeError: member.hasPermission is not a function this should be it for protocol

dylanjamesdev commented 3 years ago

I just ran another giveaway to try and reproduce the error, it can't find the member's ID within the node module while trying to finish the giveaway.

[Unhandled Rejection] TypeError: Cannot read property 'id' of undefined at /root/tritan-bot/node_modules/discord-giveaways/src/Giveaway.js:338:89

dylanjamesdev commented 3 years ago

Ahm, you should have got a error message, shouldn't you? Please provide it.

Uncaught Promise Error: TypeError: member.hasPermission is not a function this should be it for protocol

Ahh my bad I thought it was in the code snippet, that was the message yes.

Nico105 commented 3 years ago

npm install Androz2091/discord-giveaways#develop that branch should have the fix, try it

dylanjamesdev commented 3 years ago

Thank you :)