mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fix a potential bug some people have in retrieving endpoints
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user