Pass voice ws errors

This commit is contained in:
abalabahaha
2016-05-10 22:03:05 -07:00
parent d4b693c4b0
commit 3221bde4db
2 changed files with 16 additions and 0 deletions

View File

@@ -444,6 +444,14 @@ var VoiceConnection = (function (_EventEmitter) {
break;
}
});
vWS.on("error", function (err, msg) {
self.emit("error", err, msg);
});
vWS.on("close", function (code) {
self.emit("close", code);
});
});
};