ZeroDiscord / Giveaway

Easy To Use Giveaway Bot For Discord Written In Discord.js v14. Ft. Slash Commands & Select Menus. Make Giveaways and seamlessly enjoy giveaways on your discord server with advanced features such as role and server requirements!
Creative Commons Zero v1.0 Universal
148 stars 131 forks source link

Slash error not being handled properly #7

Closed ElTuna closed 3 years ago

ElTuna commented 3 years ago

i got this error when i set 0 winners in start slash command:

node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "options.winnerCount is not a positive integer. (val=0)".] {
  code: 'ERR_UNHANDLED_REJECTION'
}
ZeroDiscord commented 3 years ago

Fixed as of https://github.com/ZeroDiscord/Giveaway/commit/b9b21826d443443a812ed2f354b6de6925cf7b91 Thanks for reporting!