voice setup waits for all data

This commit is contained in:
Amish Shah
2016-08-23 18:29:48 +01:00
parent fa085c18cd
commit d8b1ef47cd
5 changed files with 51 additions and 11 deletions

View File

@@ -14,8 +14,8 @@ class VoiceServerUpdate extends AbstractHandler {
const data = packet.d;
const client = this.packetManager.client;
if (client.voice.pending.get(data.guild_id)) {
client.voice._receivedVoiceServer(data.token, data.endpoint);
if (client.voice.pending.has(data.guild_id)) {
client.voice._receivedVoiceServer(data.guild_id, data.token, data.endpoint);
}
}