magmastream 2.2.1 → 2.2.3

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.
package/README.md CHANGED
@@ -5,6 +5,8 @@
5
5
  ![GitHub Stars](https://img.shields.io/github/stars/Blackfort-Hosting/magmastream.svg)
6
6
  [![Issues](https://img.shields.io/github/issues/Blackfort-Hosting/magmastream.svg)](https://github.com/Blackfort-Hosting/magmastream/issues)
7
7
  [![Pull Requests](https://img.shields.io/github/issues-pr/Blackfort-Hosting/magmastream.svg)](https://github.com/Blackfort-Hosting/magmastream/pulls)
8
+ [![Sponsor](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/Blackfort-Hosting)
9
+
8
10
 
9
11
  **Magmastream** a lavalink wrapper for NodeJs. Magmastream only supports lavalink version 4.
10
12
 
@@ -151,9 +151,6 @@ class Filters {
151
151
  }
152
152
  /** Removes the audio effects and resets the filter status. */
153
153
  async clearFilters() {
154
- this.player.filters = new Filters(this.player);
155
- await this.updateFilters();
156
- // Reset filter status
157
154
  this.filterStatus = {
158
155
  bassboost: false,
159
156
  distort: false,
@@ -166,6 +163,14 @@ class Filters {
166
163
  tv: false,
167
164
  vaporwave: false,
168
165
  };
166
+ this.player.filters = new Filters(this.player);
167
+ this.setEqualizer([]);
168
+ this.setDistortion(null);
169
+ this.setKaraoke(null);
170
+ this.setRotation(null);
171
+ this.setTimescale(null);
172
+ this.setVibrato(null);
173
+ await this.updateFilters();
169
174
  return this;
170
175
  }
171
176
  /** Returns the status of the specified filter . */
@@ -292,7 +292,7 @@ class Player {
292
292
  this.dynamicLoopInterval = setInterval(() => {
293
293
  if (!this.dynamicRepeat)
294
294
  return;
295
- let shuffled = _.shuffle(this.queue);
295
+ const shuffled = _.shuffle(this.queue);
296
296
  this.queue.clear();
297
297
  shuffled.forEach((track) => {
298
298
  this.queue.add(track);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magmastream",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "description": "A user-friendly Lavalink client designed for NodeJS.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,19 +15,19 @@
15
15
  },
16
16
  "devDependencies": {
17
17
  "@favware/rollup-type-bundler": "^2.0.0",
18
- "@types/lodash": "^4.14.196",
19
- "@types/node": "^20.4.5",
18
+ "@types/lodash": "^4.14.197",
19
+ "@types/node": "^20.5.7",
20
20
  "@types/ws": "^8.5.3",
21
- "@typescript-eslint/eslint-plugin": "^6.2.1",
22
- "@typescript-eslint/parser": "^6.2.1",
23
- "eslint": "^8.46.0",
21
+ "@typescript-eslint/eslint-plugin": "^6.5.0",
22
+ "@typescript-eslint/parser": "^6.5.0",
23
+ "eslint": "^8.48.0",
24
24
  "npm-run-all": "^1.7.0",
25
25
  "typedoc": "^0.24.8",
26
26
  "typedoc-plugin-no-inherit": "^1.4.0",
27
27
  "typescript": "^5.1.6"
28
28
  },
29
29
  "dependencies": {
30
- "@discordjs/collection": "^1.5.2",
30
+ "@discordjs/collection": "^1.5.3",
31
31
  "axios": "^1.4.0",
32
32
  "events": "^3.3.0",
33
33
  "lodash": "^4.17.21",