5.1.0
Added
- New
replyToGiveaway
option for MessageObjects. (badac28) - New
infiniteDurationText
option forpauseOptions
. (427d1cd)
Fixed
- Fix crash when giveaway message was deleted. (bd30806)
- Allow discord.js color strings in start options. (87cb43c)
- Prevent 0 winners when default reaction changes suddenly. (9343d14)
- MessageObject embeds are allowed to have empty descriptions. (7668b34)
- Properly publish esm config file. (150233d)
- "this" wasn't accessible in bonus functions of
GiveawayStartOptions#bonusEntries
. (385fbc0) - Fix error when embed gets manually suppressed. (9f1a61e)
- Fix deprecation warning from discord.js because of
channel#deleted
andembed#setFoorter()
. (04144a7, cf9991f) - Fix message editing because of unequal drop/pause embeds. (b6b0f37)
General improvements
- json storage error handling. (58eafe9)
- Trim strings for better comparison/validation. (929553c)
- Keep the cached message up to date. (ad0b1f4)
- Only delete giveaway data when the fetch error is explicitly "message was deleted". (fd24700)
- Some fixes and additions related to typings. (916017a, 5b6ecc2, b83ec6e, c13507d, 0e0efbf, 89d3ae1, ddd4982, 4e0e311)
Credits
Thanks to: @demirdegerli, @Shashank3736, @reinhello, @imranbarbhuiya