Skip to content

Commit

Permalink
fix(Queue): set volume before playing
Browse files Browse the repository at this point in the history
  • Loading branch information
twlite committed Aug 23, 2021
1 parent 6d9d427 commit 731e309
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Structures/Queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 731e309

Please sign in to comment.