From db806fcce3afa8dfeb3d3b0cb72b0d40e275a074 Mon Sep 17 00:00:00 2001 From: DevAndromeda <46562212+DevAndromeda@users.noreply.github.com> Date: Sat, 7 Aug 2021 21:21:22 +0545 Subject: [PATCH] feat(Player): add connectionTimeout option --- src/VoiceInterface/VoiceUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VoiceInterface/VoiceUtils.ts b/src/VoiceInterface/VoiceUtils.ts index df02948..7de4433 100644 --- a/src/VoiceInterface/VoiceUtils.ts +++ b/src/VoiceInterface/VoiceUtils.ts @@ -31,7 +31,7 @@ class VoiceUtils { } ): Promise { const conn = await this.join(channel, options); - const sub = new StreamDispatcher(conn, channel); + const sub = new StreamDispatcher(conn, channel, options.maxTime); this.cache.set(channel.guild.id, sub); return sub; }