mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
try again
This commit is contained in:
@@ -1055,7 +1055,7 @@ export default class InternalClient {
|
||||
};
|
||||
|
||||
this.websocket.onmessage = e => {
|
||||
if (e.type === "Binary") {
|
||||
if (e.data instanceof Buffer) {
|
||||
if (!zlib) zlib = require("zlib");
|
||||
e.data = zlib.inflateSync(e.data).toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user