github discordjs/discord.js 11.0.0

Additions

  • Support for uws (significantly faster websocket implementation) (c91ee7a3e792370f1992d1557114296910411292, 0008a18deb0acfad246ebaf435ab601e38bc6126, 945a2e370ab5a3af31c2f53be7f6af5887f32748, c683790de791878dc99f6358651a0b14c73badaa, 6afd80cf533675bc7dce0ec74127e1c6550f5dee)
  • Support for ETF websocket encoding with erlpack (1e5afc16087106613df50296558e5ca919a5f68b)
  • Support for prebuilt FFMPEG packages from ffmpeg-binaries (52a83b9218f9774bf93529a2d880ee5448432066)
  • Web distributions (2440a4a2c838a589328af87aaa85fb76f0dbc1e3, 411c9bd32c94c3164a08cfc196463cb969c9d47b, too many to list)
  • ClientOptions.restTimeOffset to tweak the additional delay for ratelimiting (544e456302a2098e264961277e97c63843b0d11e)
  • Message reactions (81059885a28c0f5871cfac8a29ca69af6579e71f through 21b00e1e298d71111076f96aed7c120c213ed23c and more)
    • Message.react()
    • MessageReaction.remove()
    • Message.clearReactions()
    • Message.reactions
    • MessageReaction class
    • ReactionEmoji class (81059885a28c0f5871cfac8a29ca69af6579e71f)
    • ADD_REACTIONS permission flag (dfeafbf5fabed59f916fd26a22e3f134e3e6346c)
  • Message embeds/rich text support (27270a3bad580a1863b2ac198b2672b41f4eddd5, b2bc844ed77cc29000e48d807d3b75a88795cb21)
    • RichEmbed builder (6cfbf76406360c1e126985ea1ccbcb2dc26c2d6b, daa79b7f97251c777fdb109c2ff57b4fa7044c5b)
    • Message.sendEmbed()
  • TextBasedChannel.send() as a combined message sending method that can handle all message stuff (ed8fcf651a2e69715a0e827489acb03e2e5d24c7)
  • Improved emoji support (d129457624160962b61c612d10819c16f7f9b750)
    • Emoji.identifier
    • emojiAdd and emojiDelete events (cd657be8beaf852e969d660ec40c02130242578f)
  • OAuthApplication support (c9dbf1f7f032baa354c27f3268d731aa3589f267, 85330769a7b2625a96da431aca4e6c111c0a4273, 8139bef4e23a18864ef4b36ca6784e607dde38eb, bef0523ebf4c1edb7855ea2e58244061e7505ded)
    • Client.fetchApplication()
    • Guild.applicationID
    • OAuth2Application and ClientOAuth2Application classes
  • Message.webhookID/fetchWebhook() (676a895da7867c08c0499096fbbe21c5c02aea7a, 8b7ef0c8502f61aee1f8294958aeb40bb36fe26c)
  • Message.isMemberMentioned() (676a895da7867c08c0499096fbbe21c5c02aea7a)
  • User/GuildMember.lastMessageId (b177aefdd67a0b0409fde3707ec5d5439e70c17e)
  • User.defaultAvatar/defaultAvatarURL/displayAvatarURL (586d652c168e79640e810eabe4c43d4359b82663, 78026df1df453e26176a73d3700abddeffffb725)
  • User.dmChannel (84503c88771de8914ecd7400fe5a6a339e3e0632)
  • ClientUser.fetchMentions() (e3921073696242ffbf44a50f7dafc12c2f362620)
  • UserProfile.premium (8139bef4e23a18864ef4b36ca6784e607dde38eb)
  • GuildMember.displayName (586d652c168e79640e810eabe4c43d4359b82663)
  • Guild.splashURL (edfb27f4285e585e414367e01ea00adaa241c6e7)
  • Guild.applicationID (8139bef4e23a18864ef4b36ca6784e607dde38eb, bef0523ebf4c1edb7855ea2e58244061e7505ded)
  • Role.editable (7d02e73a260e8ed67d5cbd341a4da3f244d9e211, 544540fb0230301383d94ed61dfad92cc9a2292b)
  • Nullable permission overwrites to reset (5dc30d68123fd46d8da3cb8b1a4e7122d8a0f2a2)
  • GuildChannel.clone() (d766e727a1e346a14ca2b12aba0adfa24c6ea134)
  • Client.pings/ping (58c7c2e7b87de36383c62812c35a51ba5086f40d)
  • Client.setTimeout()/clearTimeout() made public (f2496070d36df1d6fde1a5b080add58a7fd33965)
  • Client.generateInvite() (fa7d63a10a729dd1663eeec2bf5738183bb1e73e)
  • Client#disconnect event receives the CloseEvent from the websocket (b518437f524781ce000ada70cfb19df38dd0cde8)
  • StreamDispatcher#end event receives the reason for ending (fbe1929bdede44fec56e5da1a8a14862c109b605)
  • Collection.equals() (a0b245bfe1a9063bc93061bbe271449d464fc914)
  • TypeScript typings (b85a589a01d78a8ba836b3d8cfe7f405f89f32f7)

Changes

  • Client.login() no longer supports logging in with email + password (a20bac72584615d13f421237285ec8147dbc9c8b)
  • ClientUser.setEmail()/setPassword() now require the current password to be passed, in addition to setUsername() on user accounts (cecb0aee027a9b71e821a0b7281699c0144708eb)
  • Removed TextBasedChannel.sendTTSMessage() (ed8fcf651a2e69715a0e827489acb03e2e5d24c7)
  • Using Collection.find()/exists() with IDs will throw an error (ee3a03f7074ff2fe94dc7a74f46596d3b08d4ce5)
  • ShardingManager no longer marked as experimental (305070dded3dca0579e5df2a632cbd363e956b8b)
  • Huge internal simplification of promises (8306d50bd8d2042154e5e1889b32f0e7512f1286, 60e0d507f065883ddbeaf135541315dcafc16fb6)
  • GuildMember.addRole()/removeRole() now use the new API functionality (638e51a18ce31366f2c1d2da53588fce35e835f6)
  • FileResolvable renamed to BufferResolvable (5fa9e3548bc63eed7e85622ddd1ab95c7e42b5d3)
  • Guild.createEmoji() and TextChannel.createWebhook() now accept BufferResolvable or Base64Resolvable (c041b1bc23e8df9075d984af0b754eeb50a8aaaf)
  • User.avatarURL supports animated gif avatars (2390e525ef04637bac9fb786d49f1aad25e3b08f)
  • Role.toString() on the @everyone role will simply be @everyone, rather than a full role mention (3451367591bacf77fb6243659ce3bbd461f35d70)
  • Message.edit() updated to match new TextBasedChannel.send() functionality (ed8fcf651a2e69715a0e827489acb03e2e5d24c7)
  • Updated to Superagent 3 (6383d42eb55c45ff673ea036daedf08cf264beb1)

Fixes

  • VoiceConnection#speaking never emits (4e6b632d2339151c50ed1f190c8524ca7f0fe8b7)
  • ChannelResolvables don't work with strings (cdf66f8011908276ef49067422fd9b7d8048210d)
  • BufferResolvables failing improperly for URLs with an empty response body (a359f344d891e0166ed18f49c61a84d0ea4f99cd)
  • Message.edits (4ae1f63a97829706fb50aa15703d9021f60c294d)
  • Role.setPosition() returns Guild instead of Role (27e77d3839c25bb9745f03d405b122e323b1c5bd)
  • Role.setPosition() doesn't reorder other roles properly (e63432c18e380afe27c19c89f67e1dac9d78650a)
  • Disabled events not actually disabling (9323882a8dd2f0f799cf774489590a1b5f43e651)
  • VoiceConnection.playConvertedStream() (eedc097f3fc0cacd3a31de6ec42e53506f04584d)
  • Guild sync assumes unknown members are new to the guild (b3358245701280120cc5e892d38cb03c498bce30)
  • Presence update before ready (6043a1f83a70d95803c0f9c9ef8a4edc8dc09a97)
  • Collection.set()/delete() don't chain properly (bd00bc404cfcb605fe49a94d1b410e3fca1a2dc6)
  • Collection.reduce() doesn't perfectly mirror Array.reduce() (28ca83011c5775ce0f1c643a261b4138b42a416d)
  • ShardClientUtil emits an error upon multiple clients being created in one process (a0de75f29087cd14424670a617e5aaefc6b25a1e)
  • Crash when a guild member gets added to a guild connected to a voice channel that isn't cached (a0a3989e59cce22aa50c39f39c4d18ec743c8d40)
  • Other minor fixes
latest releases: 13.2.0, 13.1.0, 13.0.1...
4 years ago