From 9296a30148883f67bfa249ddb729cccba6813aed Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Fri, 22 Jun 2018 17:47:00 +0100 Subject: [PATCH] voice: account for speaking now being a bitmask --- src/client/voice/VoiceConnection.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/voice/VoiceConnection.js b/src/client/voice/VoiceConnection.js index 5f674cf2f..d3b785cc3 100644 --- a/src/client/voice/VoiceConnection.js +++ b/src/client/voice/VoiceConnection.js @@ -137,7 +137,7 @@ class VoiceConnection extends EventEmitter { this.sockets.ws.sendPacket({ op: VoiceOPCodes.SPEAKING, d: { - speaking: this.speaking, + speaking: this.speaking ? 1 : 0, delay: 0, ssrc: this.authentication.ssrc, }, @@ -426,6 +426,7 @@ class VoiceConnection extends EventEmitter { * @private */ onSpeaking({ user_id, ssrc, speaking }) { + speaking = Boolean(speaking); const guild = this.channel.guild; const user = this.client.users.get(user_id); this.ssrcMap.set(+ssrc, user);