Skip to content

Commit

Permalink
Fix seedVoiceConnections
Browse files Browse the repository at this point in the history
  • Loading branch information
abalabahaha committed Aug 5, 2018
1 parent 31a7d07 commit 6cf3017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gateway/Shard.js
Expand Up @@ -1170,7 +1170,7 @@ class Shard extends EventEmitter {
if(channel) {
channel.voiceMembers.add(guild.members.update(voiceState));
if(this.client.options.seedVoiceConnections && voiceState.id === this.client.user.id && !this.client.voiceConnections.get(channel.guild ? channel.guild.id : "call")) {
this.client.joinVoiceChannel(channel.id, false);
this.client.joinVoiceChannel(channel.id);
}
} else { // Phantom voice states from connected users in deleted channels (╯°□°)╯︵ ┻━┻
this.client.emit("debug", "Phantom voice state received but channel not found | Guild: " + guild.id + " | Channel: " + voiceState.channel_id);
Expand Down

0 comments on commit 6cf3017

Please sign in to comment.