mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 01:01:30 +00:00
Fixed something that may break later
This commit is contained in:
parent
821c12f82c
commit
a36bc226fd
2 changed files with 2 additions and 2 deletions
|
|
@ -292,7 +292,7 @@ var VoiceConnection = (function (_EventEmitter) {
|
||||||
self.vWSData = data.d;
|
self.vWSData = data.d;
|
||||||
|
|
||||||
KAI = setInterval(function () {
|
KAI = setInterval(function () {
|
||||||
if (vWS.readyState === WebSocket.OPEN) vWS.send(JSON.stringify({
|
if (vWS && vWS.readyState === WebSocket.OPEN) vWS.send(JSON.stringify({
|
||||||
op: 3,
|
op: 3,
|
||||||
d: null
|
d: null
|
||||||
}));
|
}));
|
||||||
|
|
|
||||||
|
|
@ -283,7 +283,7 @@ class VoiceConnection extends EventEmitter {
|
||||||
self.vWSData = data.d;
|
self.vWSData = data.d;
|
||||||
|
|
||||||
KAI = setInterval(() => {
|
KAI = setInterval(() => {
|
||||||
if (vWS.readyState === WebSocket.OPEN)
|
if (vWS && vWS.readyState === WebSocket.OPEN)
|
||||||
vWS.send(JSON.stringify({
|
vWS.send(JSON.stringify({
|
||||||
op: 3,
|
op: 3,
|
||||||
d: null
|
d: null
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue