mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Voice state update null check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user