mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
voice: remove redundant debug info
This commit is contained in:
@@ -188,13 +188,12 @@ class VoiceConnection extends EventEmitter {
|
|||||||
self_deaf: this.voice ? this.voice.selfDeaf : false,
|
self_deaf: this.voice ? this.voice.selfDeaf : false,
|
||||||
}, options);
|
}, options);
|
||||||
|
|
||||||
const queueLength = this.channel.guild.shard.ratelimit.queue.length;
|
this.emit('debug', `Sending voice state update: ${JSON.stringify(options)}`);
|
||||||
this.emit('debug', `Sending voice state update (queue length is ${queueLength}): ${JSON.stringify(options)}`);
|
|
||||||
|
|
||||||
return this.channel.guild.shard.send({
|
return this.channel.guild.shard.send({
|
||||||
op: OPCodes.VOICE_STATE_UPDATE,
|
op: OPCodes.VOICE_STATE_UPDATE,
|
||||||
d: options,
|
d: options,
|
||||||
});
|
}, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user