feat(Player): add connectionTimeout option

This commit is contained in:
DevAndromeda 2021-08-07 21:21:22 +05:45
parent 5a5e308105
commit db806fcce3
No known key found for this signature in database
GPG key ID: FA40E3EC5CB6DCD6

View file

@ -31,7 +31,7 @@ class VoiceUtils {
} }
): Promise<StreamDispatcher> { ): Promise<StreamDispatcher> {
const conn = await this.join(channel, options); 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); this.cache.set(channel.guild.id, sub);
return sub; return sub;
} }