Releases: Androz2091/discord-giveaways
Releases · Androz2091/discord-giveaways
6.0.1
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
- @saiteja-madha made their first contribution in #472
Full Changelog: v6.0.0...v6.0.1
6.0.0
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 topauseOptions.unpauseAfter
. (7015e39)
Additions ✨
- New
title
message (f635e48)⚠ExtendedgenerateEmbed()
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
5.2.1
5.2.0
Added
- feat: allow
newExemptMembers
when editing by @imranbarbhuiya in #439 - feat: add
MessageActionRow
components in MessageObject by @imranbarbhuiya in #422 - feat: add option to remove reroll error message by @imranbarbhuiya in #436
- feat: add Giveaway param in
exemptMembers
by @imranbarbhuiya in #452 - add
image
option. (096f8f5)
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
Fixed
replyToGiveaway
not working if only used with an embed an nocontent
. (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
Added
- New
replyToGiveaway
option for MessageObjects. (badac28) - New
infiniteDurationText
option forpauseOptions
. (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
andembed#setFoorter()
. (04144a7, cf9991f) - Fix message editing because of unequal drop/pause embeds. (b6b0f37)
General improvements
- json storage error handling. (58eafe9)
- Trim strings for better comparison/validation. (929553c)
- Keep the cached message up to date. (ad0b1f4)
- Only delete giveaway data when the fetch error is explicitly "message was deleted". (fd24700)
- Some fixes and additions related to typings. (916017a, 5b6ecc2, b83ec6e, c13507d, 0e0efbf, 89d3ae1, ddd4982, 4e0e311)
Credits
Thanks to: @demirdegerli, @Shashank3736, @reinhello, @imranbarbhuiya
5.0.1
5.0.0
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 newforceUpdateEvery
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 tolastChance.threshold
. (87d5eb4)Giveaway#giveawayDuration
getter has been renamed toGiveaway#duration
. (67fcc9e)Giveaway#channel
getter has been removed. (235f9d1)GiveawayStartOptions#time
has been renamed toGiveawayStartOptions#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 bymessages.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()
andGiveaway#unpause()
methods. (#269 ) - New
newLastChance
option for theGiveaway#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 thestart()
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 🏗️
- Remove useless requests to Discord. (0bbf272)
Giveaway#edit()
method now updates the message once it's called. (b984859)- Embeds now use new description limit (4096 instead of 2048). (df438ad)
- Embeds now use titles instead of authors. (a5b4f5e)
- Better validation when receiving a reaction add event on a non-fetched guild. (a2d488c)
- Default giveaway options don't use @everyone anymore, to prevent involuntary pings. (4330bd7)
- Add intents validation. (025ae94)
- Validation of options has been improved. (6b88f0c, c3c6c1d)
- Last chance options are now merged with the default ones. (2ccaca6)
- Add documentation and help to store BigInts values. (2a117c8)
- Checking of ended giveaways (that needs to be deleted) is now done at runtime. (44dce74)
- Support for BigInt's in JSON storage. (2a117c8)
- Some fixes and additions related to typings. (#275, d0214ae, decbe4e, db9a38e, c78024f, d31a738)
- New Apache - CouchDB example. (f3c49dc)
- Default message for footer has been updated. (823dd8f)
- Some improvements related to the documentation. (58e1871, #295, f2a994f, 2fec2e2, 68bb901, e0ee063, 04a4db4, 670e9c3, f0a6b79, 2d273de, 090add9, 405280a, 4a8de63, 37cc5ff, dbf9846, 3de35c4)
- Some other fixes and improvements. (6962843, 58bd0d3, 73fe361, 2745869, ade29b2, 375099d, 08dc386, 9051bc1, be9ea30, 67381fd, fdc349a, f1ee342, aba4c64, dc05668)
Credits
Thanks to @Nico105, @WiseDevHelper, @snowflake107, @Dev-CasperTheGhost, @Lebyy, @Dragonizedpizza, @NotMarx, @Ionys320