diff --git a/src/client/voice/VoiceConnection.js b/src/client/voice/VoiceConnection.js index 648e3e1e8..5ca6d4238 100644 --- a/src/client/voice/VoiceConnection.js +++ b/src/client/voice/VoiceConnection.js @@ -133,6 +133,7 @@ class VoiceConnection extends EventEmitter { d: { speaking: this.speaking, delay: 0, + ssrc: this.authentication.ssrc, }, }).catch(e => { this.emit('debug', e); diff --git a/src/client/voice/networking/VoiceWebSocket.js b/src/client/voice/networking/VoiceWebSocket.js index 19c0a2127..4241aed21 100644 --- a/src/client/voice/networking/VoiceWebSocket.js +++ b/src/client/voice/networking/VoiceWebSocket.js @@ -232,7 +232,7 @@ class VoiceWebSocket extends EventEmitter { * Sends a heartbeat packet. */ sendHeartbeat() { - this.sendPacket({ op: VoiceOPCodes.HEARTBEAT, d: null }).catch(() => { + this.sendPacket({ op: VoiceOPCodes.HEARTBEAT, d: Math.floor(Math.random() * 10e10) }).catch(() => { this.emit('warn', 'Tried to send heartbeat, but connection is not open'); this.clearHeartbeat(); });