mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +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;
|
||||
|
||||
KAI = setInterval(function () {
|
||||
if (vWS.readyState === WebSocket.OPEN) vWS.send(JSON.stringify({
|
||||
if (vWS && vWS.readyState === WebSocket.OPEN) vWS.send(JSON.stringify({
|
||||
op: 3,
|
||||
d: null
|
||||
}));
|
||||
|
|
|
|||
|
|
@ -283,7 +283,7 @@ class VoiceConnection extends EventEmitter {
|
|||
self.vWSData = data.d;
|
||||
|
||||
KAI = setInterval(() => {
|
||||
if (vWS.readyState === WebSocket.OPEN)
|
||||
if (vWS && vWS.readyState === WebSocket.OPEN)
|
||||
vWS.send(JSON.stringify({
|
||||
op: 3,
|
||||
d: null
|
||||
|
|
|
|||
Loading…
Reference in a new issue