mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 21:42:05 +00:00
Fix a potential bug some people have in retrieving endpoints
This commit is contained in:
parent
155b4383d2
commit
cda31dd224
2 changed files with 2 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -12,7 +12,7 @@ class VoiceServerUpdate extends AbstractHandler {
|
||||||
handle(packet) {
|
handle(packet) {
|
||||||
const client = this.packetManager.client;
|
const client = this.packetManager.client;
|
||||||
const data = packet.d;
|
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);
|
client.voice._receivedVoiceServer(data.guild_id, data.token, data.endpoint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue