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

Stop failed reroll message, customize end message as a Message #431

Closed Dragonizedpizza closed 2 years ago

Dragonizedpizza commented 2 years ago

Firstly, when I reroll a giveaway and there aren't enough participants, this message is sent in the chat. image Can I stop this from happening?

Secondly, can I modify the giveaway end message as a Message? Like add components to it.

Dragonizedpizza commented 2 years ago

...?

Nico105 commented 2 years ago

I will add an option. and #422

Dragonizedpizza commented 2 years ago

Can I stop this from happening?

By this I meant that I wanted to make it an ephemeral, or get an error thrown.

So what you could do is add an option called noFailedRerollMessage in GiveawayManager

imranbarbhuiya commented 2 years ago

Can I stop this from happening?

By this I meant that I wanted to make it an ephemeral, or get an error thrown.

So what you could do is add an option called noFailedRerollMessage in GiveawayManager

Throwing an error will be good so we can catch it and show ephemeral message. But I think it'll make it a samver:major. So Instead of noFailedRerollMessage add a option for failOnNoWinner or anything other name idc and if this reroll option is true then Instead of sending a message reject the promise.

Nico105 commented 2 years ago

Can this be closed or is something still missing?

Dragonizedpizza commented 2 years ago

It can be closed, thank you very much.