Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Upgrade discord.js: 12.5.1 → 13.6.0 (major) #255

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented Jan 26, 2022

Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ discord.js (12.5.1 → 13.6.0) · Repo · Changelog

Release Notes

13.6.0

Documentation

Features

13.5.1

Bug Fixes

  • sweepers: Provide default for object param (#7182) (2dabd82)

Documentation

13.5.0

Bug Fixes

  • GuildMemberManager: Nick endpoint (#7151) (d0c3961)
  • Permissions: ToArray shouldn't check admin (#7144) (fc4292e)
  • Remove deprecation warning on Message#cleanContent (#7143) (7e5f16b)

Features

  • GuildMember: Add method to check timeout (#7146) (baacd6b)
  • ClientOptions: WaitGuildTimeout amount client option (#6576) (2bfc638)

Refactor

  • MessageEmbed: Deprecate strings for setAuthor() (completely) and setFooter() (#7153) (3496516)
  • Import timers, process, and Buffer from node: (#7157) (3c62bd2)

13.4.0

Bug Fixes

  • BaseMessageComponent: don't create new class instances (#7140) (e6f41b5)
  • Make the followUp function error more clear (#7129) (b763dab)
  • ActionsManager: revert to manual requires (#7034) (0193efa)
  • GuildAuditLog: Remove Promises in constructor (#7089) (9cf44d1)
  • GuildChannel: default to this.rawPosition in clone() (#7057) (5fcda73)
  • InteractionCollector: handle thread (and parent) deletion (#7070) (b5cd288)
  • MessageManager: Allow a string for edit() (#7033) (54f937d)
  • MessageManager: do not use client.emojis (#7039) (fd63139)
  • MessagePayload: prevent spread of undefined (#7029) (fabd343)
  • MessageReaction: Cache myself when MessageReaction#me is true. (#6956) (b001e19)
  • ReactionCollector: check for channel.threads (#7069) (3846f0d)
  • ShardingManager: fix respawnAll not passing delay correctly (#7084) (de61fe4)
  • StickerPack: Nullify bannerId (#7119) (6bb03f2)
  • avoid sending bot auth on token endpoints (#7022) (7efeff4)
  • Interaction channel type should be GuildTextBasedChannels when in guild (#6998) (da86bd4)
  • webhook typeguards should use string comparisons (#7127) (645b3f8)
  • Message: remove usage of .deleted (#7109) (a0fe0ac)
  • Sharding: properly handle errors in fetchClientValues (#6990) (c0ba2d4)
  • StoreChannel: mark as deprecated (#7072) (5ec542d)
  • Util: fix sorting for GuildChannels (#7002) (c07207f)
  • VoiceState: set streaming to false when the stream ended (#6992) (fdb09cb)

Features

13.3.1

Bug Fixes

  • assert channel types in message actions (#6919) (9bd3689)
  • MessageEmbed: only compare image urls in #equals (#6926) (95d2a4d)
  • correctly access guild IDs inside managers (#6927) (2d9ffb8)

13.3.0

Bug Fixes

  • Handle message bulk delete and thread delete in collectors (#6902) (d6685b1)
  • AllowedImageSizes: add new image sizes (#6844) (ef01b84)
  • ApplicationCommandManager: update guild command cache on c/u/d (#6841) (f169c8f)
  • Guild: guild.available is never set on new joins (#6769) (29667c9)
  • GuildBanManager: send reason in the headers instead of json body (#6800) (bfb89de)
  • GuildMember: more explicit partial check (#6760) (b1656bf)
  • MessageComponentInteraction: component getter is not null anymore (#6835) (7621e9d)
  • TextBasedChannel: return the cached message instead of clone it (#6877) (ceaf738)
  • PartialGuildMember#id is not null (#6840) (4dff279)
  • MessageReaction: Prevent event double fire from uncached messages (#6818) (267a4b3)
  • Role: check for presence of icon and unicode_emoji before patching (#6780) (e31c5ca)
  • Types: export more types (#6808) (b474677)
  • User: don't generate the banner URL when not cached (#6783) (0d599a1)
  • Webhook: Resolve source guild only if cached (#6834) (d193d04)

Features

  • ThreadMemberManager: allow individual members to be fetched (#6889) (14716df)
  • add support for autocomplete interactions (#6672) (ddf759c)
  • MessageEmbed: add #equals (#6885) (fae4abf)
  • StartThreadOptions: default autoArchiveDuration to channel's defaultAutoArchiveDuration (#6278) (740d3f0)
  • Add rtcRegion to GuildManager#create() (#6858) (399e720)
  • add typeguards to webhooks (#6850) (e0afcad)
  • Client: add apiResponse and apiRequest events (#6739) (26f927b)
  • CommandInteraction: add toString method (#6793) (bd48e6d)
  • GuildChannelManager: add 'rtcRegion' option to 'create' method (#6849) (487d32d)
  • Interaction: add isApplicationCommand check (#6801) (6898fa3)
  • ModuleImporter: implement import module compatible with bundlers (#6709) (d399a28)
  • Permissions: add checkAdmin to permission overwrite checks (#6847) (7513b45)

13.2.0

Bug Fixes

  • *RoleManager: Create set of role ids correctly (#6674) (f8aa4bd)
  • AllowedImageSizes: add new image sizes (#6754) (d0025be)
  • BaseClient: Remove selfbot ability (#6429) (9a833b1)
  • CachedManager: return updated data when cache is false (#6685) (8426770)
  • Constants: allow undefined size (#6686) (d3da833)
  • GuildChannel: Fix manageable method for voice-channels (#6447) (9301c9b)
  • GuildEmoji: Cache restricted roles and author data (#6675) (60b8ba6)
  • GuildManager: add missing types and converts (#6683) (cdf65f7)
  • Invite: #guild never resolving into a Guild (#6742) (b76bb8a)
  • Message: avoid overwriting properties in _patch (#6738) (a8c21cd)
  • Message: fix typo (#6435) (ecb6e50)
  • Message: pinnable returning false in non-DEFAULT messages (#6585) (3183b11)
  • Message: throw error on missing channel (#6581) (60aa9ae)
  • MessageAttachment: re-assign name (#6518) (8a8c69a)
  • ReactionCollector: only call the filter function once (#6734) (d15dd5f)
  • Role: toJSON() throwing due to permission bigints (#6724) (9e421f6)
  • Shard: eval promise never resolves (#6649) (5070d23)
  • Shard: use provided timeout when respawning (#6735) (905d100)
  • Sticker: Rename method correctly to _add (#6421) (2c449b6)
  • ThreadChannel: fetchStarterMessage bug (#6584) (08edc0b)
  • threadMembersUpdate: fixed typo (#6589) (8826e9f)
  • User: compare flags in #equals (#6750) (00e1e26)
  • UserUpdateAction: rely on client.user when ids match (#6511) (1418649)
  • Util: allow empty strings in splitMessage (#6437) (d6e6244)
  • Util: default animated to false when omitted on resolvePartialEmoji (#6725) (8d80fec)
  • VoiceState: Patch streaming value (#6747) (7eec061)
  • allow null to be passed in order to reset icon/avatar (#6646) (6033506)
  • await message component collectors should return component interactions not collectors (#6562) (f49f70a)
  • don't patch set data with undefined (#6694) (9eb9591)
  • xxxable: follow more properly with discord behavior (#6551) (5d87398)

Features

  • add support for role icons (#6633) (7129965)
  • ApplicationCommand: add #equals (#6414) (581921f)
  • ApplicationCommand: add support for channel_types (#6640) (3b14883)
  • ApplicationCommand: add version property (#6603) (f866512)
  • BaseGuildTextChannel: export BaseGuildTextChannel (#6527) (fc51f61)
  • CategoryChannel: add createChannel shortcut method (#6614) (3eacf7a)
  • Guild: Add Guild#maximumBitrate getter. (#6455) (21983de)
  • Integration: add missing props and fix docs/types (#6623) (caa3b60)
  • Interaction: add memberPermissions (#6741) (28d96e3)
  • Allow webhooks to fetch, edit and delete messages in threads (#6695) (107822d)
  • GuildMember: add guild avatars (#5696) (dfd7b40)
  • InteractionReponses: allow fetching of ephemeral messages (#6426) (d289d5c)
  • Message: Add method to resolve a component by id (#6484) (57b94b9)
  • Message: prevent fetching an interaction webhook. (#6468) (f39b597)
  • MessageAttachment: add support for ephemeral property (#6652) (c5db0ff)
  • MessageAttachment: allow files to be marked as spoilers (#6509) (96e26c4)
  • MessageTypes: add CONTEXT_MENU_COMMAND (23) (#6425) (d81590d)
  • PartialGroupDMChannel: Add recipients & fix name (#6713) (2803db6)
  • Permissions: add START_EMBEDDED_ACTIVITIES (#6622) (66a90d3)
  • Threads: update permissions and fix getters (#6466) (10478ad)
  • UserManager: allow #fetch to take UserResolvable (#6677) (a06a87a)
  • add api error code 160002 (#6566) (d16ada9)
  • add api error code 30042 (#6635) (183dbd7)
  • add api error code 50101 (#6663) (42fdcaa)
  • add maximum prune requests reached api error (#6427) (a4b8623)
  • Add support for API command types in ApplicationCommandManager (#6621) (ecd637f)
  • default values for setX boolean methods (#6619) (8add4b0)
  • Give removed MessageReactions on messageReactionRemoveAll event (#6607) (be8912a)
  • Rest: expose https.Agent options (#6177) (5eb3553)
  • ThreadChannel: add fetchStarterMessage (#6488) (705c5a1)
  • Threads: add support for invitable in private threads (#6501) (a693254)
  • User: banners and accent colors (#6117) (839c6da)
  • export BaseCommandInteraction (#6478) (c14e594)
  • export ContextMenuInteraction (#6434) (170c0c4)
  • set methods for MessageActionRow and MessageSelectMenu (#6490) (fb50dd9)

Performance Improvements

  • use logical assignments instead of if statements (#6693) (e9daa31)

13.1.0

Bug Fixes

  • Constants: fix CDN endpoint typings (#6332) (47d2ef3)
  • ContextMenuInteraction: store message as raw value (#6400) (d9456a1)
  • Guild: preferredLocale to always be a string (#6402) (4a64662)
  • GuildMemberRoleManager: typo (#6335) (d87299b)
  • Managers: fix typo in unsupported warning (#6338) (917e71a)
  • StageInstance: Ensure discoverableDisabled is not undefined (#6395) (dce8fc7)
  • Util: remove truthy check before isNaN check (#6358) (3c17939)
  • WidgetMember: Default to null and not undefined (#6399) (44bbfa5)

Features

  • CommandInteractionResolvedData: access to "raw" resolved data (#6384) (fff887b)
  • GuildManager: allow setting with_counts to false (#6407) (14aea12)
  • GuildMemberManager: add 'list' method (#6403) (2bf0970)
  • Utils: add additional formatters (#6388) (cd40292)
  • ContextMenus: right-clickybois (context menu support for ApplicationCommand and CommandInteraction) (#6176) (0266f28)
  • Threads: max autoArchiveDuration option (#6304) (394d486)

13.0.1

Bug Fixes

13.0.0

Changelog: https://github.com/discordjs/discord.js/blob/master/CHANGELOG.md#1300-2021-08-06

For breaking changes please reference: https://discordjs.guide/additional-info/changes-in-v13.html

12.5.3

Bug Fixes

  • Voice: disconnect if voice channel not cached (#5467) (3af8179)

12.5.2

Bug Fixes

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants