Skip to content

Releases: Androz2091/discord-giveaways

6.0.1

05 Aug 11:57
Compare
Choose a tag to compare

What's Changed

  • Fix bug when trying to end paused giveaways. (6ec5a73)
  • Types: MessageOptions#components should be optional. (e4b589c)
  • Adjust quickmongo example. (cee7f6b)

New Contributors

Full Changelog: v6.0.0...v6.0.1

6.0.0

29 Jul 12:52
Compare
Choose a tag to compare

Breaking 💥

  • Discord.js v14 is now required to use Discord Giveaways.
  • Node.js v16.9 is now required (by discord.js v14).
  • pauseOptions.unPauseAfter option has been renamed to pauseOptions.unpauseAfter. (7015e39)

Additions ✨

  • New title message (f635e48)⚠Extended generateEmbed() functions should get adjusted!

General improvements 🏗️

  • Increased default lastChance threshold to 10s (b71b7c2)

Credits

Thanks to: @imranbarbhuiya

Full Changelog: v5.2.2...v6.0.0

5.2.2

07 Jul 16:48
Compare
Choose a tag to compare

Fixed

  • Issues with giveaways not ending, due to experimental checking system for message edits. (a558828)

General Improvements

  • Mongoose example: omitUndefined isn't needed since v6.x. (82fef5d)

Full Changelog: v5.2.1...v5.2.2

5.2.1

05 Jun 19:29
Compare
Choose a tag to compare

General improvements

  • Faster regex for {} matching

Full Changelog: v5.2.0...v5.2.1

5.2.0

05 Jun 19:14
Compare
Choose a tag to compare

Added

Fixed

  • fix: fix unpause after condition by @imranbarbhuiya in #434
  • completely randomize repeated user rolling. (f0d54d7)
  • fix: assign giveaways only to their respective shards and not 'all to all' => manual sharding implementation no longer needed. (9a1f12d)
  • Drops will only end when enough valid winners are available. (e42e482, c936500)
  • 🐛 Check if embed was edited on end() by @Nico105 in #462
    ^^^ Will have to wait for results

General improvements

  • ✨Switch to deepmerge-ts instead of deepmerge by @Lebyy in #442
  • delete data of drops which did not end within 1 week. (272c58b)
  • chore: export Giveaway class by @imranbarbhuiya in #444

Credits

Thanks to: @imranbarbhuiya, @Dragonizedpizza, @Lebyy, @typhoon11, @reinhello

Full Changelog: v5.1.1...v5.2.0

5.1.1

06 Feb 12:53
Compare
Choose a tag to compare

Fixed

  • replyToGiveaway not working if only used with an embed an no content. (e3ee38c)
  • pause function pauseOptions#infiniteDurationText not working. (929ba47)
  • If message or embed size to big, depending on the existence/position of {winners}, fix errors. (5d9a700)

Full Changelog: v5.1.0...v5.1.1

5.1.0

23 Jan 14:37
776e2c0
Compare
Choose a tag to compare

Added

  • New replyToGiveaway option for MessageObjects. (badac28)
  • New infiniteDurationText option for pauseOptions. (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 and embed#setFoorter(). (04144a7, cf9991f)
  • Fix message editing because of unequal drop/pause embeds. (b6b0f37)

General improvements

Credits

Thanks to: @demirdegerli, @Shashank3736, @reinhello, @imranbarbhuiya

5.0.1

05 Sep 12:12
Compare
Choose a tag to compare

Fixed

  • Fix bug with check giveaway function. (4dc26e6)
  • Fix some bugs with message length limit. (6a6b8bc)
  • Some fixes to docs.
  • Some fixes related to the mongoose example.

5.0.0

30 Aug 14:29
Compare
Choose a tag to compare

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

4.5.1

29 Apr 05:46
Compare
Choose a tag to compare

Fixed

  • Fix a typo in the README file. (cc5d242)
  • Add about property to bug report issue template. (0f81e4f)