mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
voice: more debug information
This commit is contained in:
@@ -125,8 +125,6 @@ class VoiceConnection extends EventEmitter {
|
||||
* @type {VoiceReceiver}
|
||||
*/
|
||||
this.receiver = new VoiceReceiver(this);
|
||||
|
||||
this.authenticate();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -180,6 +178,9 @@ class VoiceConnection extends EventEmitter {
|
||||
self_deaf: false,
|
||||
}, options);
|
||||
|
||||
const queueLength = this.channel.guild.shard.ratelimit.queue.length;
|
||||
this.emit('debug', `Sending voice state update (queue length is ${queueLength}): ${JSON.stringify(options)}`);
|
||||
|
||||
this.channel.guild.shard.send({
|
||||
op: OPCodes.VOICE_STATE_UPDATE,
|
||||
d: options,
|
||||
|
||||
Reference in New Issue
Block a user