feat(Player): add connectionTimeout option
This commit is contained in:
parent
5a5e308105
commit
db806fcce3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue