fix(Queue): set volume before playing
This commit is contained in:
parent
6d9d427e4e
commit
731e30967c
1 changed files with 2 additions and 3 deletions
|
@ -645,11 +645,10 @@ class Queue<T = unknown> {
|
|||
|
||||
if (options.seek) this._streamTime = options.seek;
|
||||
this._filtersUpdate = options.filtersUpdate;
|
||||
this.setVolume(this.options.initialVolume);
|
||||
|
||||
setTimeout(() => {
|
||||
this.connection.playStream(resource).then(() => {
|
||||
this.setVolume(this.options.initialVolume);
|
||||
});
|
||||
this.connection.playStream(resource);
|
||||
}, this.#getBufferingTimeout()).unref();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue