fix(Queue): set volume before playing

This commit is contained in:
DevAndromeda 2021-08-23 18:10:31 +05:45
parent 6d9d427e4e
commit 731e30967c
No known key found for this signature in database
GPG key ID: FA40E3EC5CB6DCD6

View file

@ -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();
}