Skip to content

Commit

Permalink
refactor: Make setFilterVolume and setEqualizer methods public in Pla…
Browse files Browse the repository at this point in the history
…yer.ts
  • Loading branch information
flav-code committed Aug 12, 2024
1 parent b9f29a4 commit 22d5704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/guild/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,15 +334,15 @@ export class Player extends EventEmitter {
* Sets the filter volume of the player
* @param volume Target volume 0.0-5.0
*/
async setFilterVolume(volume: number): Promise<void> {
public setFilterVolume(volume: number): Promise<void> {
return this.setFilters({ volume });
}

/**
* Change the equalizer settings applied to the currently playing track
* @param equalizer An array of objects that conforms to the Bands type that define volumes at different frequencies
*/
public async setEqualizer(equalizer: Band[]): Promise<void> {
public setEqualizer(equalizer: Band[]): Promise<void> {
return this.setFilters({ equalizer });
}

Expand Down

0 comments on commit 22d5704

Please sign in to comment.