voice: handle new client_connect and client_disconnect packets

This commit is contained in:
Amish Shah
2018-06-22 18:38:33 +01:00
parent 9296a30148
commit 08bbbe9301
4 changed files with 27 additions and 14 deletions

View File

@@ -429,7 +429,7 @@ class VoiceConnection extends EventEmitter {
speaking = Boolean(speaking);
const guild = this.channel.guild;
const user = this.client.users.get(user_id);
this.ssrcMap.set(+ssrc, user);
this.ssrcMap.set(+ssrc, user_id);
/**
* Emitted whenever a user starts/stops speaking.
* @event VoiceConnection#speaking