Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.

Commit

Permalink
fix clear eq
Browse files Browse the repository at this point in the history
  • Loading branch information
Solaris9 committed Dec 18, 2020
1 parent dd2ef9f commit 592f5a6
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
28 changes: 28 additions & 0 deletions docs.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
9 changes: 8 additions & 1 deletion src/structures/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 592f5a6

Please sign in to comment.