mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
guarantee promise resolution for voice connections
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -125,6 +125,7 @@ class ClientVoiceManager {
|
|||||||
reject,
|
reject,
|
||||||
});
|
});
|
||||||
this._sendWSJoin(channel);
|
this._sendWSJoin(channel);
|
||||||
|
this.client.setTimeout(() => reject(new Error('connection not established in 15s time period')), 15000);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user