voice: more debug information

#3074, #2979, #3044
This commit is contained in:
Amish Shah
2019-02-10 20:18:08 +00:00
parent 793341dbb4
commit aab3523fb5
4 changed files with 24 additions and 2 deletions

View File

@@ -72,6 +72,8 @@ class ClientVoiceManager {
reject(reason);
});
connection.on('debug', msg => this.client.emit('debug', `[VOICE (${channel.guild.id})]: ${msg}`));
connection.once('authenticated', () => {
connection.once('ready', () => {
resolve(connection);