Fix a potential bug some people have in retrieving endpoints

This commit is contained in:
Amish Shah
2016-09-28 18:03:17 +01:00
parent 155b4383d2
commit cda31dd224
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

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