mirror of
https://github.com/danbulant/discord.js
synced 2026-06-17 21:51:20 +00:00
try again
This commit is contained in:
parent
ff7adf1cf7
commit
6cff34ae3c
2 changed files with 2 additions and 2 deletions
|
|
@ -1165,7 +1165,7 @@ var InternalClient = (function () {
|
|||
};
|
||||
|
||||
this.websocket.onmessage = function (e) {
|
||||
if (e.type === "Binary") {
|
||||
if (e.data instanceof Buffer) {
|
||||
if (!zlib) zlib = require("zlib");
|
||||
e.data = zlib.inflateSync(e.data).toString();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue