Skip to content

5.0.0

Compare
Choose a tag to compare
@Androz2091 Androz2091 released this 30 Aug 14:29
· 134 commits to master since this release

Thank you for using Discord Giveaways!

Breaking 💥

  • Discord.js v13 is now required to use Discord Giveaways.
  • Node.js v16 is now required (both by Discord Giveaways v5 and Discord.js v13).
  • The casing of thingID properties has been changed to thingId. (b2941bc)
  • The updateCountdownEvery property has been removed, as the embeds don't need updates (because we moved to Discord Timestamps). You can still use the new forceUpdateEvery option if you need to force edits of the embed at a specific interval. (5844ba5)
  • GUILD_MESSAGE_REACTIONS intent is now required. (0cf4298)
  • lastChance.secondsBeforeLastChance option has been renamed to lastChance.threshold. (87d5eb4)
  • Giveaway#giveawayDuration getter has been renamed to Giveaway#duration. (67fcc9e)
  • Giveaway#channel getter has been removed. (235f9d1)
  • GiveawayStartOptions#time has been renamed to GiveawayStartOptions#duration. (a2f7025)
  • Discord Giveaways now uses Discord Timestamps instead of editing the message over and over. (fd471d4)
  • Giveaway#messages has received a lot of changes/improvements. Check them our here.
  • messages.timeRemaining has been replaced by messages.drawing for the timestamp change. (fd471d4)
  • messages.units object has been removed because of the timestamp change. (fd471d4)

Additions ✨

  • New drops feature. (#224)
  • New Giveaway#pause() and Giveaway#unpause() methods. (#269 )
  • New newLastChance option for the Giveaway#edit() method. (cd49a75)
  • Add support for custom thumbnails in embeds. (a5b4f5e)
  • Add support for custom footer objects in embeds. (35ec38f)
  • Add support for thread channels. (#336)
  • New newLastChance option for edit method. (#336)
  • New noWinnerMessage option for end method. (299a32e)
  • New allowedMentions option for the start() method. (#318)
  • New way to access giveaway properties in messages. For example, you can now specify Congrats, you won the giveaway started by {this.hostedBy}!. (ca9a41a)
  • Add support for sending a embed instead of, or with the normal message for: start(winMessage), reroll(messages) and end(noWinnerMessage). (ca9a41a)

Important bug fixes 🚑

  • All the reactions are now fetched (and not only the last 100 ones). (#254)
  • Giveaway#end() method now returns the winners. (302cfbd)

General improvements 🏗️

Credits

Thanks to @Nico105, @WiseDevHelper, @snowflake107, @Dev-CasperTheGhost, @Lebyy, @Dragonizedpizza, @NotMarx, @Ionys320