Skip to content

Commit

Permalink
fix(lint): Fix ESLint error
Browse files Browse the repository at this point in the history
  • Loading branch information
hmes98318 committed Oct 6, 2024
1 parent 55adb7f commit fc97afb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/Filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,9 @@ export default class Filters {
/**
* Sets the volume
* @param vol - The volume to set [0,500]
* @param apply - Whether to send filter payload to Lavalink or not
* @returns The filters instance, for chaining calls
*/
public setVolume(vol: number, apply = true): this {
public setVolume(vol: number): this {
if (typeof vol !== 'number') throw new TypeError('Volume must be an number.');
if (vol < 0 || vol > 500) throw new TypeError('Volume must be an number between 0 and 500.');

Expand Down

0 comments on commit fc97afb

Please sign in to comment.