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

🐛 Check if embed was edited on end() #418

Closed Nico105 closed 2 years ago

Nico105 commented 2 years ago

*NOT TESTED

Changes

Added private endedProperly property which only is true when the end embed equals the generated one.

checkGiveaways will check that property and will end the giveaway again if necessary. In case winners were already chosen, those will still be the winners.

The only thing that isn't checked is wheter all win Messages were sent. But checking that would require too much fetching, so it's not worth it. It's most important that the embed is properly edited.

Status