0.8.1
Additions:
- Added support for
zlib-stream
gateway compression (49c0654, 90790ea, 4164696, 08e1ea4, f8f27b0, a105af3, 90d0c17, 7e6040b)- Since zlib has been acting up for some users, gateway compression (Client construct option
compress
) isfalse
by default - For best results, install NPM package
pako
(easier to install), orzlib-sync
(faster but requires a C++ compiler)
- Since zlib has been acting up for some users, gateway compression (Client construct option
- Gateway events (
messageCreate
,guildDelete
, etc.) are now emitted from the Shard they were received on, in addition to the existing Client events (9d1016c, 8623b3d, cdf2aaf, 92c3da0, cdf4a85) - Emit a
Client#hello
event when a shard receives an OP:10/Hello packet (1d8271a, 389a9a6) - Allow CommandClient to grab a Message object/Promise from a command generator (c56241e)
Fixes:
- Demoted a ton of errors and warnings (c4b9c33)
- Many things that were warnings are now debug messages, and many errors are now considered warnings. This was done because we found that a lot of the Discord behavior we considered "abnormal" is actually "normal".
- Fixed some reaction ratelimiting behavior (81f0e82, 94c0767)
- Apparently Discord ratelimits reactions across the entire account, so it is not recommended for large bots to use reactions
- Fixed the Invite constructor (3391e8f)
- Fixed
Message.cleanContent
edge cases (c691282, d8b7d39) - Fixed undefined errors in
User.dynamicAvatarURL
(71c0907) - Fixed reaction button actions in CommandClient (884034c)
- Fixed CommandClient handling of array generators (dbdd30a)