discord-player 5.3.2-dev.1 → 5.3.2-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- var _Queue_instances, _Queue_lastVolume, _Queue_destroyed, _Queue_watchDestroyed, _Queue_getBufferingTimeout;
2
+ var _Queue_instances, _Queue_destroyed, _Queue_watchDestroyed, _Queue_getBufferingTimeout;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Queue = void 0;
5
5
  const tslib_1 = require("tslib");
@@ -32,7 +32,6 @@ class Queue {
32
32
  this._cooldownsTimeout = new discord_js_1.Collection();
33
33
  this._activeFilters = []; // eslint-disable-line @typescript-eslint/no-explicit-any
34
34
  this._filtersUpdate = false;
35
- _Queue_lastVolume.set(this, 0);
36
35
  _Queue_destroyed.set(this, false);
37
36
  this.onBeforeCreateStream = null;
38
37
  /**
@@ -316,7 +315,6 @@ class Queue {
316
315
  return;
317
316
  if (!this.connection)
318
317
  return false;
319
- tslib_1.__classPrivateFieldSet(this, _Queue_lastVolume, amount, "f");
320
318
  this.options.initialVolume = amount;
321
319
  return this.connection.setVolume(amount);
322
320
  }
@@ -704,7 +702,7 @@ class Queue {
704
702
  this._filtersUpdate = options.filtersUpdate;
705
703
  const volumeTransformer = resource.volume;
706
704
  if (volumeTransformer && typeof this.options.initialVolume === "number")
707
- Reflect.set(volumeTransformer, "volume", Math.pow(this.options.initialVolume / 100, 1.660964));
705
+ volumeTransformer.setVolume(Math.pow(this.options.initialVolume / 100, 1.660964));
708
706
  if (volumeTransformer?.hasSmoothness && typeof this.options.volumeSmoothness === "number") {
709
707
  if (typeof volumeTransformer.setSmoothness === "function")
710
708
  volumeTransformer.setSmoothness(this.options.volumeSmoothness || 0);
@@ -749,7 +747,7 @@ class Queue {
749
747
  });
750
748
  this.play(nextTrack, { immediate: true });
751
749
  }
752
- *[(_Queue_lastVolume = new WeakMap(), _Queue_destroyed = new WeakMap(), _Queue_instances = new WeakSet(), Symbol.iterator)]() {
750
+ *[(_Queue_destroyed = new WeakMap(), _Queue_instances = new WeakSet(), Symbol.iterator)]() {
753
751
  if (tslib_1.__classPrivateFieldGet(this, _Queue_instances, "m", _Queue_watchDestroyed).call(this))
754
752
  return;
755
753
  yield* this.tracks;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discord-player",
3
- "version": "5.3.2-dev.1",
3
+ "version": "5.3.2-dev.2",
4
4
  "description": "Complete framework to facilitate music commands using discord.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",