Discord Giveaways Versions Save

🎉 Complete framework to facilitate the creation of giveaways using discord.js

v4.5.0

3 years ago

Added

  • New prize variable for reroll and end methods. (163b79e973411024c71ba9633cd86889ee87862b)
  • Winners that have been chosen can no longer be chosen when rerolling. (0768c8e7230b1a1a01250a94df49be0ba4ae666f)
  • New last chance option. (#45)
  • Bonus Entries. (#187)

Fixed

  • Errors when editing a giveaway message are now caught. (66e8ab6ad4879d04f08b6833d3c25711e96a9301)
  • MongoDB example has been renamed to QuickMongo. (d0988fb062f16b22048d3b471ae3b64e47be1206)
  • Fix givewayEnded event. (46e6c506698d71190a833aae9f909088f29013e8, 273cc531670b345d081164db439a8da9c998fbe2)
  • Fix error when winnerCount is bigger than the amount of participations. (0768c8e7230b1a1a01250a94df49be0ba4ae666f)
  • Some fixes with the typings and data types. (#211)
  • Giveaways with a lot of winners are now displayed correctly. (#225)
  • Fix some functions to Discord.js v13 is supported. (af3eb35)
  • Exempt members are now serialized so they can be retrieved if the bot has to restart. (30f7751)
  • Support many winners in the embed and win message. (c8f2b81d4d40834c864185f279de9b4d0d1e69bc)

Documentation

  • Add end method in examples. (163b79e973411024c71ba9633cd86889ee87862b)
  • Add embedColorEnd in examples. (6d4c6781062fba75143ebdbfdf4a5b27ed45a757)
  • New mongoose example. (ec0a50ef1c460b0b5689baeec8d2481b30f58b82)
  • New enmap example. (8588d8d6dcd0d70c779146e1ede7a590a04844a4)
  • New @replit/database example. (0b5ecb54d939882401ec1dfd8a8f8af14d6eceb4)
  • New quick.replit example. (e13882ce16ed174307c3ac6f576d2075b725d438)

Other

  • Issue templates on GitHub. (#216)

Capture d’écran 2021-02-18 à 15 40 06 (last chance feature example)

Huge thanks to @Nico105 for his contributions :heart:

v4.4.3

3 years ago

Fixed

  • Many small bugs related to the selection of the winners at the end of the giveaways

v4.4.2

3 years ago

Fixed

  • extraData should be an option. (2e317517f60509cc8b43bd09ea4b60bed9b75c74)
  • MySQL example is now fixed. (0450df7d9b37cf2153ded31e3771a33d13ff97fb)
  • Fix Giveaway#roll() method. (5077336c3100974e934f13ed082defbb616bbba0)

v4.4.1

3 years ago

Fixed

  • GiveawaysManager#edit() documentation fixed. (a20cd88bac30c65883d240a61a60a751793cab1d)
  • giveawayEnded now returns a valid array of Discord.GuildMember. (f09f8d792c68a0c2fbcd27b01d3dfde2c8c7bbb9)
  • giveawayReactionAdded is no longer emitted when the bot adds the first reaction to the giveaway message. (48b628b)

v4.4.0

3 years ago

Added

  • Bots without GUILD_MEMBERS intent are now entirely supported. (c0e19f5)
  • New newExtraData option to GiveawaysManager#edit() method. (6f77ad2)
  • New init option to GiveawaysManager to choose whether it should be initialized once it's created. (3080bcd, #153)
  • New Giveaway#messageURL getter. (a29bf43)

Fixed

  • Update mongodb link in README. (11ec279)

v4.3.0

3 years ago

⚠️ (small) Breaking changes

  • Discord.js v11 support has been removed. (31dacd8)

Added

  • New giveaway.extraData property, useful to store data such as custom requirements, etc. (496e1916f1524a8fc4f1db71c91bc0cf0acf1d49)
  • Add Giveaway.winnersIDs, filled when the giveaway is ended. (#145)
  • Add GiveawayManager.endedGiveawaysLifetime, useful to remove ended giveaways from DB after a period of time. (#145)
  • New GiveawaysManager#giveawayDeleted event. (496e1916f1524a8fc4f1db71c91bc0cf0acf1d49)
  • Embeds are now generated using methods in the GiveawaysManager class that can be overwritten! (c653901e482910feeeec73799e33dacf37f6b924)
  • reroll() now edits the giveaway embed instead of only sending a new message. (496e1916f1524a8fc4f1db71c91bc0cf0acf1d49)
  • Eslint added, for a better code quality
  • Add MySQL example (e594be915b7b749cf31a045b6d4add148578acce)

Fixed

  • reroll() method now uses the number of winners specified in options object (2896edba87c43eee73aba40004ce6c0c6baf0fa9)
  • Fix botsCanWin check (da52a5408ae615d002f7d51712127d0e77f48eb7)
  • Giveaway messages are now merged with the default ones to avoid issues like #122 (bedd3de2b320d69c589672826f3f4f82e1a24a01)

Changed

  • giveaway#content has been renamed to giveaway#remainingText (04ce6cd)
  • Update jsdoc template (8cb8dcbf8916ca8e2f7144794f8d93fea45595e6)

Credits

Huge thanks to @Shashank3736, @GreepTheSheep, @DeltaCoderr, and @NicoHd105 for helping!

v4.2.1

3 years ago

Fixed

  • exemptMembers functions can now be asynchronous.

v4.2.0

3 years ago

Added

  • New giveawayRerolled event. (01047edaee9d8a2c93c20a6d3d06face79f90551, 8b6150fbd4de1bab0f9d3e65d4270932873442ec)

Fixed

  • Giveaways with a broken exemptMembers function can now be ended (it will accept all the members) (13e64556e41f3a31a73536e6c76950b4bd3525dc)
  • Manager#delete() has been fixed when it was used with a custom database. (2d42724040b58e43f10bc6f3d6d20233b27a1544)
  • Giveaways are now deleted from the database if the message has been deleted. (abfd7ae2353a7ddd067b31bcd31940018c1e56da)
  • reaction parameter was added to giveawayReactionRemoved event. (097c2ecf7018cf5c86fc56aa052277a04238e166)
  • giveawayReactionAdded and giveawayReactionRemoved are now triggered for custom reactions. (#69)

v4.1.8

4 years ago

Fixed

  • giveawayReactionAdd is now emitted for the giveaways that are not ended. (#58)
  • Update promises handling for GiveawaysManager#edit(), GiveawaysManager#reroll() and GiveawaysManager#end(). (5ed1248a02e3c93e9397def607d5f042188460c6)

v4.1.7

4 years ago

Fixed

  • Giveaway#roll() now returns an array of members, as documented. (122252a7e1f35de669b6c0fd366160fbdd9576f2)