Discord Giveaways Versions Save

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

v6.0.1

1 year ago

What's Changed

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

New Contributors

Full Changelog: https://github.com/Androz2091/discord-giveaways/compare/v6.0.0...v6.0.1

v6.0.0

1 year ago

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. (7015e3958d57877e3f5e91878aab51d8ffb6a9ca)

Additions ✨

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

General improvements 🏗️

Credits

Thanks to: @imranbarbhuiya

Full Changelog: https://github.com/Androz2091/discord-giveaways/compare/v5.2.2...v6.0.0

v5.2.2

1 year ago

Fixed

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

General Improvements

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

Full Changelog: https://github.com/Androz2091/discord-giveaways/compare/v5.2.1...v5.2.2

v5.2.1

1 year ago

General improvements

  • Faster regex for {} matching

Full Changelog: https://github.com/Androz2091/discord-giveaways/compare/v5.2.0...v5.2.1

v5.2.0

1 year ago

Added

Fixed

General improvements

Credits

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

Full Changelog: https://github.com/Androz2091/discord-giveaways/compare/v5.1.1...v5.2.0

v5.1.1

2 years ago

Fixed

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

Full Changelog: https://github.com/Androz2091/discord-giveaways/compare/v5.1.0...v5.1.1

v5.1.0

2 years ago

Added

  • New replyToGiveaway option for MessageObjects. (badac288cb696b709dec3e4a7ea16127c8e99531)
  • New infiniteDurationText option for pauseOptions. (427d1cd57afd9252e6030f0bc9f7de983646adad)

Fixed

  • Fix crash when giveaway message was deleted. (bd3080673fb2510335bd8c1d5b533a5a399ce099)
  • Allow discord.js color strings in start options. (87cb43cece78f8bc2c0c30c43e54904ad5ef334e)
  • Prevent 0 winners when default reaction changes suddenly. (9343d14ed44882fe8de0924d32abfed19452ff52)
  • MessageObject embeds are allowed to have empty descriptions. (7668b34a2d7ee5176933a71c980403ca1bcdac38)
  • Properly publish esm config file. (150233d26da8689ee4e7d3018e88ac98ed459881)
  • "this" wasn't accessible in bonus functions of GiveawayStartOptions#bonusEntries. (385fbc0e4b8fedec8c227615e65a01935d66e865)
  • Fix error when embed gets manually suppressed. (9f1a61e581fb205ac676bd550004753b6df26a47)
  • Fix deprecation warning from discord.js because of channel#deleted and embed#setFoorter(). (04144a765f21fdf1738d78a91983dd3354b7f733, cf9991f78acca7c8fe62633d19c32976bd613b43)
  • Fix message editing because of unequal drop/pause embeds. (b6b0f3771ede7934c0ce2da373338853034262c6)

General improvements

  • json storage error handling. (58eafe9c0abdbefcc45eef5f9995acadecfca455)
  • Trim strings for better comparison/validation. (929553cc834db99ad6045637433c4d1b0d6e16c6)
  • Keep the cached message up to date. (ad0b1f47088100bbca3f235c363aa6b9f70f8425)
  • Only delete giveaway data when the fetch error is explicitly "message was deleted". (fd247008b4b22ae82ac8fbe84bf186e452b75cb5)
  • Some fixes and additions related to typings. (916017a772906dc17dc3b22fca58cfdbd4aeada4, 5b6ecc2061bd056d40a9f8984c3a4cb78dd27f75, b83ec6e2be6998166ceb2930a15354e503b676b2, c13507db7c723a860e89e49bc567eb9ecb309eca, 0e0efbfe1a06aaecd4cae991bd78a2d33a6a78f3, 89d3ae1bc9f9fbe3e8d486262a4c84e9891e914c, ddd49827c6a1bca60e5d2449f0dcac8bd7719628, 4e0e3112267dc78f0d7492255fb0a483c374fa03)

Credits

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

v5.0.1

2 years ago

Fixed

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

v5.0.0

2 years ago

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. (b2941bc8b605d1253f5ab4537986d047bbc2e732)
  • 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. (0cf4298742d8997f79febb912a875be026260958)
  • lastChance.secondsBeforeLastChance option has been renamed to lastChance.threshold. (87d5eb4c7ec7e2e2bf28b77b6a84fd2bb4eeb332)
  • Giveaway#giveawayDuration getter has been renamed to Giveaway#duration. (67fcc9e0a075ec46d538dd05fac943133c3151ec)
  • Giveaway#channel getter has been removed. (235f9d1a9f3e03d842c9be3a76120c7d89b38145)
  • GiveawayStartOptions#time has been renamed to GiveawayStartOptions#duration. (a2f7025)
  • Discord Giveaways now uses Discord Timestamps instead of editing the message over and over. (fd471d4541d249ba656cf645e07b4bd289c02622)
  • 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. (fd471d4541d249ba656cf645e07b4bd289c02622)
  • messages.units object has been removed because of the timestamp change. (fd471d4541d249ba656cf645e07b4bd289c02622)

Additions :sparkles:

  • New drops feature. (#224)
  • New Giveaway#pause() and Giveaway#unpause() methods. (#269 )
  • New newLastChance option for the Giveaway#edit() method. (cd49a750784aff8d90a049741bfd340b1e4ec434)
  • Add support for custom thumbnails in embeds. (a5b4f5ecb60f30e027da759dfd1d1b2e7a2cd53d)
  • Add support for custom footer objects in embeds. (35ec38f75cc0f9e5259b5505892adfe807099674)
  • Add support for thread channels. (#336)
  • New newLastChance option for edit method. (#336)
  • New noWinnerMessage option for end method. (299a32e275eccae842ba8e4ced5b14733a193ac3)
  • 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. (302cfbd6060c157adf61543649fb12b68e13a23b)

General improvements 🏗️

  • Remove useless requests to Discord. (0bbf272)
  • Giveaway#edit() method now updates the message once it's called. (b984859634b6ffa82d7d1b3f43749944e66e46f7)
  • Embeds now use new description limit (4096 instead of 2048). (df438ad10ed2f5e84e23386c17669adfd6f3d8c9)
  • Embeds now use titles instead of authors. (a5b4f5ecb60f30e027da759dfd1d1b2e7a2cd53d)
  • Better validation when receiving a reaction add event on a non-fetched guild. (a2d488c0df0a231fc1701381231f8d57495b4b93)
  • Default giveaway options don't use @everyone anymore, to prevent involuntary pings. (4330bd72a147417024db96f0e681039d726a15e4)
  • Add intents validation. (025ae94061a3364204e5882a4e21497cf85c5803)
  • Validation of options has been improved. (6b88f0c49238bf8991f389e3e0388c5dad304b30, c3c6c1d053a886d1de6ced3f1b2742089b2da64f)
  • Last chance options are now merged with the default ones. (2ccaca69654076dc07268795666c51661289541c)
  • Add documentation and help to store BigInts values. (2a117c81f0c68744e510e7cb20eeae89d0e9870a)
  • Checking of ended giveaways (that needs to be deleted) is now done at runtime. (44dce74b2628c18df6ec425ca28c3a6a8993177c)
  • Support for BigInt's in JSON storage. (2a117c81f0c68744e510e7cb20eeae89d0e9870a)
  • Some fixes and additions related to typings. (#275, d0214ae2bf48412cd72d433d96b71d5c63e00d6a, decbe4eec575cc48594a04a462ac149e0cb02d89, db9a38eaee394669bc8549033e112d34c500e2a8, c78024fb34d558e455a03168fc648478ef5c6c91, d31a7387715e2ff933f98b44dbccbfff2cdbae21)
  • New Apache - CouchDB example. (f3c49dc)
  • Default message for footer has been updated. (823dd8f)
  • Some improvements related to the documentation. (58e1871f095c6097a2932d762dfe838007977df6, #295, f2a994f8d98d980961c399bd100200df3c558009, 2fec2e221106b9585cd47aa4875ca6bed99555d9, 68bb901db4574aa60ac6551de5d99221b1f3bb38, e0ee06390ce2a929df64e9bbaf5a43914d94d559, 04a4db4f559d66b048cca875978fb5846d8c33db, 670e9c39d918f3ca86596f0985b3cf4561c06da8, f0a6b79dd67973d0f55579a2a85071f42ad24c97, 2d273de36bb477d0ef5d7442f957e5eac7abe569, 090add90b18ff066c2d34ac125ce459331bc7f91, 405280a2ffe475f85857000632e8eda177475ac8, 4a8de637f3ffed75bb628ac65a5f1b60d4714776, 37cc5ff8afd9aa8defea20f11dd9ae71b059ceec, dbf98461ba8cae73eff190d80482d4d317a6ac15, 3de35c4d5503c972cda2bed5d737546ac7ed4f62)
  • Some other fixes and improvements. (69628435ff14ce989e5b0ff2588e55d2cfe7fdf8, 58bd0d3c039103b5e6b7bc242ab38055cfd6c63d, 73fe361c0778b74d289bcc7545804693055195f5, 27458696ae4d3e86d85d325857d4342b0b7e23e6, ade29b2d0172fb9471a6ed6ea1b59a25072a8274, 375099dc5bb7a3b1b5bb52271d85222cf3ce85cd, 08dc386084628f2c04da15f6fba2f2a06b5d6d44, 9051bc10739c3b73a7eaa9815d8b3eb9727113dc, be9ea305f8ef79af3463c8cae87cf963bd9f99ec, 67381fd6b9dfb577ed3b188548e2b44c263bd168, fdc349a6a31910377ab2a470dbdc14cffc4d49f4, f1ee342cb3ec07711a751864912192dcc5c002bf, aba4c64fe8bcffe89dba94553c26559789e22593, dc05668ddb34bcc5399e6a5ad6b771f81296a033)

Credits

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

v4.5.1

3 years ago

Fixed

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