magmastream 2.2.0 → 2.2.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.
package/README.md CHANGED
@@ -39,6 +39,7 @@ Also you can join the [Discord Support Server](https://discord.com/invite/HV59Z3
39
39
  | Name | Creator |
40
40
  | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |
41
41
  | [Lava Jukebox](https://discord.com/api/oauth2/authorize?client_id=887651843742793779&permissions=-1&redirect_uri=https%3A%2F%2Fdiscord.gg%2F4ZaXbbYSTZ&response_type=code&scope=guilds.join%20bot%20applications.commands) | Abel Purnwasy |
42
+ | [Stal](https://discord.com/oauth2/authorize?client_id=923938180263182356&scope=bot%20applications.commands&permissions=27648861246) | memte |
42
43
 
43
44
  If you want to add your own bot create a pull request with your bot added. Please add your full name.
44
45
 
@@ -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 . */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magmastream",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "A user-friendly Lavalink client designed for NodeJS.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -16,18 +16,18 @@
16
16
  "devDependencies": {
17
17
  "@favware/rollup-type-bundler": "^2.0.0",
18
18
  "@types/lodash": "^4.14.196",
19
- "@types/node": "^20.4.5",
19
+ "@types/node": "^20.4.6",
20
20
  "@types/ws": "^8.5.3",
21
- "@typescript-eslint/eslint-plugin": "^6.2.0",
22
- "@typescript-eslint/parser": "^6.2.0",
23
- "eslint": "^8.45.0",
21
+ "@typescript-eslint/eslint-plugin": "^6.2.1",
22
+ "@typescript-eslint/parser": "^6.2.1",
23
+ "eslint": "^8.46.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.1",
30
+ "@discordjs/collection": "^1.5.2",
31
31
  "axios": "^1.4.0",
32
32
  "events": "^3.3.0",
33
33
  "lodash": "^4.17.21",
@@ -84,4 +84,4 @@
84
84
  "homepage": "https://docs.blackforthosting.com",
85
85
  "author": "Abel Purnwasy",
86
86
  "license": "Apache-2.0"
87
- }
87
+ }