More debug information

This commit is contained in:
Amish Shah
2019-02-11 17:39:19 +00:00
parent a705edfd0d
commit 283fc54ce4
2 changed files with 11 additions and 2 deletions

View File

@@ -64,7 +64,8 @@ class ClientVoiceManager {
return;
} else {
connection = new VoiceConnection(this, channel);
connection.on('debug', msg => this.client.emit('debug', `[VOICE (${channel.guild.id})]: ${msg}`));
connection.on('debug', msg =>
this.client.emit('debug', `[VOICE (${channel.guild.id}:${connection.status})]: ${msg}`));
connection.authenticate();
this.connections.set(channel.guild.id, connection);
}