Releases: abalabahaha/eris
Releases · abalabahaha/eris
0.12.0
Breaking changes:
- Removed
disableEveryone
in favor of Allowed Mentions (ebce8dd) - Emit partial reaction events (
messageReactionAdd
&messageReactionDelete
) with partial channel objects (f9680a1)- Only
message.id
andmessage.channel.id
are guaranteed
- Only
- Replaced the
viewGuildAnalytics
permission withviewGuildInsights
, reflecting its official name (384b144)
Additions:
- Support Gateway Intents (b8df72b)
- Support Allowed Mentions (ebce8dd)
- Expose various new properties on
Message
(30577d3, 4363722) and PublicGuild
s (01c8ebb) - Support new events:
inviteCreate
&inviteDelete
(e3b4d89) - Support deleting all reactions with a specific emoji (c7c4d9d, 8deaa79)
- Support new
Message
types: 14 & 15 (2fdf6c0) - Expose audit log reason parameter in
Client#deleteMessages()
andClient#purgeChannel()
(67ab33f) - Support new properties in
Client#createGuild()
(36e49e5) - Expose
Channel#client
(ba0f2bf) - Allow passing a
Role
toClient#createRole()
(ecc40ae, e2b8c53)
Fixes:
- Fixed bugs where
CommandClient
requirements were not checked properly (3c5c35c, 03fbaac) - Fixed
libsodium
compatibility in voice encryption (2c6e707) - Fixed voice receive decoding with multiple speaking users (0d2d7f9)
- Fixed a race condition in
voiceMemberLeave
causingmember
to be null (959baf4) - Fixed various event handler errors (94a5261)
- Fixed bugs in shard disconnection handling (fbf0893)
- Fixed various image URL properties (d8256ab, a2c0678)
- Fixed potential errors in
#toJSON()
calls (fce5205) - Handle
zlib
errors during REST response reading (13d61c2) - Handle
createMessage()
errors inCommandClient
(13d61c2) - Fixed constructor errors in
getRESTGuildMember()
(4858085) - Remove unusable reaction methods from
PrivateChannel
(34ec2cc) - Removed a duplicate presence check (27d5578)
- This wasn't very effective anymore, especially given all the new fields being added to presences
- Fixed more typings (5a96e05, 6f17d1f, a5817ef, 5efc7f4, b71aad5, 0bcb29e, 6b85f57, 4529757, 71dd17e, b3b2875, f7e4b70, 26d2acb, 39399c3) and docs (64dd6a6, 76aa6ec, 6d8e211, 3970f5d)
0.11.2
Additions:
- Support new audit log entry types (3f87066)
- Officially support editing message flags (1567f9d, d68dba5)
- Support
Member#selfStream
(Go Live) (db4deb3) - Support activity type 4 (custom statuses) (a4fe81f)
- Support ESM-style imports (3fd70d4)
Guild#fetchAllMembers()
now returns aPromise
(9eee8ed)
Fixes:
- Fix voice receive (2278554)
- Immediately attempt to resume
Shard
s if possible (16c6df5) - Dynamically generate
CategoryChannel#channels
instead of maintaining a collection for it (0e9791c) - Remove unnecessary property assignments in
update()
methods (3bdeb5b, 3046b24) - Improved
toString()
for some classes (db95115) - Add role to cache in
Client#createRole()
for better compatibility with methods that depend on cached roles (f952ada) executeWebhook()
now returns aMessage
object (if necessary) (79475ee)- Fixed handling of aborted HTTP requests (6fcfc8c)
- Bumped dependency versions (c735cc7)
- A ton of typings fixes (c42a766, 21805a8, 5c59f17, d3190d0, f6203c6, 09c118b, 65dda68, cb62e78, 1c395d2, c2bd557, f4ba182, 9d377c9), code quality improvements (236dbf4, c323213, b0c7a07, 1e59a20, 598dabc, 46f2e23, d67880d, 07ba8f2, 6bc8993), and docs fixes (6185094, 1c395d2)
0.11.1
Deprecations:
- The
reason
andparentID
arguments increateChannel(guildID, name, type, reason, parentID)
have been deprecated. They can now be specified as properties of an overalloptions
object increateChannel(guildID, name, type, options)
Additions:
- Added option to customize the reconnect delay algorithm (e16e645)
- Added option to set initial
permissionOverwrites
withcreateChannel()
(4fd75ec)
Fixes:
- Optimized
VoiceState
representation in memory (b930a97, 42feacd) - Optimized
Collection#random()
(6be78bf) - Fixed issue where
Members#activites
may incorrectly becomeundefined
(e567090) - Documentation (e484725), code quality (6148a45, e2d93c2, 614fdab, 477d952), and typings fixes (3fbec3a, 1527843, 9d6f4fe, 0c4ba7c, 1fe6dd2, f9b322f, f20b741)
0.11.0
Breaking changes:
- Dropped support for gateway compression with the built-in
zlib
module (6702773) - Properties on custom Error objects (incl.
DiscordRESTError
,DiscordHTTPError
) are now writable (1dfc0f7) - Any defined
CommandClient
requirements must now all be satisfied forCommand
s to execute (AND instead of OR) (07d24f5, 7f670c4) Guild#premiumSuscriptionCount
was renamed toGuild#premiumSubscriptionCount
(oops) (31a98c0)
Additions:
- Support guild subscriptions (75ee84c)
- Support channel following (af9854e)
- Support the
stream
permission (2021d06, b75bdda) - Support the
viewGuildAnalytics
permission (5d9cce5)
Fixes:
- Fixed undefined
Member#id
in REST methods (fb00c65) - Fixed unhandled errors in voice connection logic (400ee76)
- Fixed undefined variable in REST request timeout logs (c8f0c89)
- Changed splash and banner URLs to use image defaults from
Client
options (9031263) - Changed default avatar URLs to use the Discord embed CDN (43f2bec)
- Various typings (3372745, 2423da1, 5febc74, 7163514, 4284d6e, b016b05), docs (76c3969, 684eaa2, 7163514, 6f7e4fc), and code quality (31a98c0, 684eaa2, 36986b1) fixes
0.10.1
0.10.0
Breaking changes:
- Audit log reasons will no longer be automatically URI-encoded. Use
encodeURIComponent()
if you want to pass non-URL-safe characters.
Additions:
- Added support for slowmode (0e06348, c6a6ab7)
- Added CommandClient reaction button filtering (ffcaec4)
- Added
getGuildVanity()
support (29b0f63) - Added more options to
createChannel()
(97bd436) - Added support for presence activities (97da098)
- Added new Collection methods (ea44550)
- Expose some properties
- Add full support for store/news channels (19257d5, 247092d)
- Allow custom Node HTTP(S) agent options (0509d44)
Fixes:
- Various docs fixes (e6208fa, 86ee584, e0a2fc0)
- Various TypeScript fixes (968614b, a3f90b6, 5254bd9, e2dc920, 6c2b943, 809113f, 3eace85, 33ea8e7, 0fc778d, 73d46f1)
- Fixed several undefined errors related to REST calls with Member objects (c3db0ac, 580a14b)
- Fixed voice data timeout lengths and speaking indicator flickering (31c8b10)
- Fixed CommandClient exclusion checks (b11855b)
- Fixed a voice receive parser bug that emitted invalid Opus packets (f305d7d)
- Fixed error thrown when the provided audit log reason contains a
%
(2cc9f29) - Fixed incomplete oldGuild objects in the
guildUpdate
event (1955856) - Eliminated weird decimals in
#createdAt
property of various structures (ab622ba, bd48702) - Fixed required Node version (fde55ea)
- Fixed unlimited (
limit = -1
)purgeChannel()
behavior (b30a12f, f919f96) - Fixed position calculation in
editChannelPosition()
(fe5a10f) - Stop parsing NaN-like
editedTimestamps
(188b66d) - Updated system join messages list (22d1648)
- Fixed avatar/icon size limits (8416829)
- Fixed errors thrown when handling unknown channel types (df40987)
- Fixed handling of
seedVoiceConnections
(56ffea8) - Ignore duplicate spaces in command arguments (ae2fac1)
0.9.0
Breaking Changes:
- Node >= 8.0.0 is now required
- In an effort to clean up the codebase, ES6 features from Node 6+ and
async/await
from Node 8+ has been added to the library, and the library has been re-optimized for Node 8/V8 5.8+ performance characteristics - Future versions will probably continue to follow Node LTS Maintenance scheduling; this was an exception due to all the beneficial changes introduced in Node 8.
- In an effort to clean up the codebase, ES6 features from Node 6+ and
Additions:
- Added the new
voicePrioritySpeaker
permission (7dd9a81) - Added an option for changing the REST request timeout (0a1ea97)
- Added
getGuildBan()
(ced07c2) - Allowed CommandClient hooks to change command execution and arguments (f49bd52)
Fixes:
- Fixed cases of
Message#member
and mentioned members being null (cf82953, 54d86c3, cb93c03) - Fixed occasional errors when receiving partial message updates (6741be7)
- Fixed
purgeChannel()
's handling of non-integer numbers (8ed422b) - Elevated error visibility for connecting to the Discord gateway without a token (8c59f49)
- Fixed a bug where Discord would silently drop some bot speaking statuses (bec945f)
- Exposed falsy properties in
inspect()
/toJSON()
(94019f1, ed39970) - Fixed the
seedVoiceConnections
option (6cf3017) - Fixed CommandClient options handling for custom prototypes (d02ca9f)
- Fixed handling of reaction buttons without types (1c3b0cd)
- Fixed constructing group DM invites (3d6369a)
- Fixed user note deletion (8eb801f)
Other changes:
0.8.6
Additions:
closeVoiceConnection()
– leave voice channels by voice connection ID (guild ID) (c68b07f)
Fixes:
- Bots will now display as offline immediately after using
Client.disconnect()
(4ed20e9) - Fixed
Message.cleanContent
for custom emoji and system messages (eb234f8) - Fixed slow reaction ratelimiting (23ec4da)
- Added
oldRole.mentionable
toguildRoleUpdate
event (0e888b4) - Fixed duplicate presence handling (0f570be)
- Fixed command overwriting in CommandClient (5fc5f1a)
- Fixed content for system welcome messages (347458f)
- Fixed handling of
.ogg
files with non-Opus audio tracks (de56b53)
0.8.5
0.8.4
A small release, but pretty important since it fixes the new Nitro discriminator feature not updating properly.
Additions:
- Added the
webhooksUpdate
event (b480a8b)
Fixes: