mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fixed something that may break later
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user