Skip to content

Releases: Androz2091/discord-giveaways

4.5.0

28 Apr 14:30
Compare
Choose a tag to compare

Added

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

Fixed

  • Errors when editing a giveaway message are now caught. (66e8ab6)
  • MongoDB example has been renamed to QuickMongo. (d0988fb)
  • Fix givewayEnded event. (46e6c50, 273cc53)
  • Fix error when winnerCount is bigger than the amount of participations. (0768c8e)
  • 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. (c8f2b81)

Documentation

  • Add end method in examples. (163b79e)
  • Add embedColorEnd in examples. (6d4c678)
  • New mongoose example. (ec0a50e)
  • New enmap example. (8588d8d)
  • New @replit/database example. (0b5ecb5)
  • New quick.replit example. (e13882c)

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 ❤️

4.4.3

09 Jan 15:03
Compare
Choose a tag to compare

Fixed

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

4.4.2

03 Jan 11:08
Compare
Choose a tag to compare

Fixed

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

4.4.1

27 Dec 11:50
Compare
Choose a tag to compare

Fixed

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

4.4.0

27 Dec 10:25
Compare
Choose a tag to compare

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)

4.3.0

21 Dec 13:44
Compare
Choose a tag to compare

⚠️ (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. (496e191)
  • 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. (496e191)
  • Embeds are now generated using methods in the GiveawaysManager class that can be overwritten! (c653901)
  • reroll() now edits the giveaway embed instead of only sending a new message. (496e191)
  • Eslint added, for a better code quality
  • Add MySQL example (e594be9)

Fixed

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

Changed

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

Credits

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

4.2.1

04 Jul 07:56
Compare
Choose a tag to compare

Fixed

  • exemptMembers functions can now be asynchronous.

4.2.0

03 Jul 16:41
Compare
Choose a tag to compare

Added

Fixed

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

4.1.8

29 May 12:15
Compare
Choose a tag to compare

Fixed

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

4.1.7

28 May 18:47
Compare
Choose a tag to compare

Fixed

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