diff --git a/docs.json b/docs.json new file mode 100644 index 0000000..434a66c --- /dev/null +++ b/docs.json @@ -0,0 +1,28 @@ +[ + { + "name": "Guides", + "path": "guides", + "files": [ + { + "name": "Introduction", + "path": "introduction.md" + }, + { + "name": "Basics", + "path": "basics.md" + }, + { + "name": "Advanced", + "path": "advanced.md" + }, + { + "name": "More Commands", + "path": "moreCommands.md" + }, + { + "name": "Updating", + "path": "updating.md" + } + ] + } +] \ No newline at end of file diff --git a/package.json b/package.json index e5787d0..4c8bd2c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "erela.js", - "version": "2.2.0", + "version": "2.3.1", "description": "An easy-to-use Lavalink client for NodeJS.", "main": "dist/index.js", "types": "typings/index.d.ts", diff --git a/src/structures/Player.ts b/src/structures/Player.ts index 77bc87b..bc904f9 100644 --- a/src/structures/Player.ts +++ b/src/structures/Player.ts @@ -168,7 +168,14 @@ export class Player { /** Clears the equalizer bands. */ public clearEQ(): this { this.bands = new Array(15).fill(0.0); - return this.setEQ(); + + this.node.send({ + op: "equalizer", + guildId: this.guild, + bands: this.bands.map((gain, band) => ({ band, gain })), + }); + + return this; } /** Connect to the voice channel. */