From 01476de58250761ffe5eedc9ee6c9782576ca043 Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Sat, 20 Oct 2018 12:12:21 +0200 Subject: [PATCH] fix(VoiceConnection): compare new speaking to old to avoid TypeError --- src/client/voice/VoiceConnection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/voice/VoiceConnection.js b/src/client/voice/VoiceConnection.js index 7dc06fa3d..9bec81509 100644 --- a/src/client/voice/VoiceConnection.js +++ b/src/client/voice/VoiceConnection.js @@ -452,7 +452,7 @@ class VoiceConnection extends EventEmitter { } } - if (guild && user && !old.equals(speaking)) { + if (guild && user && !speaking.equals(old)) { const member = guild.member(user); if (member) { /**