mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
voice: clear connect timeout after connected (fixes #2752)
This commit is contained in:
@@ -420,6 +420,7 @@ class VoiceConnection extends EventEmitter {
|
||||
this.authentication.secretKey = secret;
|
||||
|
||||
this.status = VoiceStatus.CONNECTED;
|
||||
clearTimeout(this.connectTimeout);
|
||||
/**
|
||||
* Emitted once the connection is ready, when a promise to join a voice channel resolves,
|
||||
* the connection will already be ready.
|
||||
|
||||
Reference in New Issue
Block a user