Voice state update null check

This commit is contained in:
abalabahaha
2016-04-15 18:15:20 -07:00
parent 9251fd01ce
commit d0f2029fa6
2 changed files with 2 additions and 2 deletions

View File

@@ -2114,7 +2114,7 @@ var InternalClient = (function () {
client.emit("warn", "voice state update but user or server not in cache");
}
if (user.id === self.user.id) {
if (user && user.id === self.user.id) {
// only for detecting self user movements for connections.
var connection = self.voiceConnections.get("server", server);
// existing connection, perhaps channel moved