πŸŽ›οΈFilters

Represents a filter structure for one Player

circle-exclamation

Properties

Name
Description
Type

enabled

Checks if some filter is enabled

active

Gets a copy of active filters object

Methods

apply()

Sends the filter payload to Lavalink Node applying all active filters

clear()

Clears all active filters

set()

Sets the filters (this function will override all active filters)

Property
Description

setChannelMix()

Configs the channel mix filter

Property
Description

options

ChannelMixOptions | nullarrow-up-right The filter options, null to disable

apply

Booleanarrow-up-right (optional) Whether to send filter payload to Lavalink or not, default is true. Set it to false if you set multiple filters at the same time

Returns
Description

This instance, for chaining calls

setDistortion()

Configs the distortion filter

Property
Description

options

DistortionOptions | nullarrow-up-right The filter options, null to disable

apply

Booleanarrow-up-right (optional) Whether to send filter payload to Lavalink or not, default is true. Set it to false if you set multiple filters at the same time

Returns
Description

This instance, for chaining calls

setEqualizer()

Configs the equalizer filter. Learn more

Property
Description

options

Arrayarrow-up-right<Numberarrow-up-right> | nullarrow-up-right An array of the band gains, null to disable

apply

Booleanarrow-up-right (optional) Whether to send filter payload to Lavalink or not, default is true. Set it to false if you set multiple filters at the same time

Returns
Description

This instance, for chaining calls

setKaraoke()

Configs the karaoke filter

Property
Description

options

KaraokeOptions | nullarrow-up-right The filter options, null to disable

apply

Booleanarrow-up-right (optional) Whether to send filter payload to Lavalink or not, default is true. Set it to false if you set multiple filters at the same time

Returns
Description

This instance, for chaining calls

setLowPass()

Configs the low pass filter

Property
Description

options

LowPassOptions | nullarrow-up-right The filter options, null to disable

apply

Booleanarrow-up-right (optional) Whether to send filter payload to Lavalink or not, default is true. Set it to false if you set multiple filters at the same time

Returns
Description

This instance, for chaining calls

setRotation()

Configs the rotation filter

Property
Description

options

RotationOptions | nullarrow-up-right The filter options, null to disable

apply

Booleanarrow-up-right (optional) Whether to send filter payload to Lavalink or not, default is true. Set it to false if you set multiple filters at the same time

Returns
Description

This instance, for chaining calls

setTimescale()

Configs the timescale filter

Property
Description

options

TimescaleOptions | nullarrow-up-right The filter options, null to disable

apply

Booleanarrow-up-right (optional) Whether to send filter payload to Lavalink or not, default is true. Set it to false if you set multiple filters at the same time

Returns
Description

This instance, for chaining calls

setTremolo()

Configs the tremolo filter

Property
Description

options

TremoloOptions | nullarrow-up-right The filter options, null to disable

apply

Booleanarrow-up-right (optional) Whether to send filter payload to Lavalink or not, default is true. Set it to false if you set multiple filters at the same time

Returns
Description

This instance, for chaining calls

setVolume()

Property
Description

volume

Numberarrow-up-right The volume between 0-500 Default is 100

apply

Booleanarrow-up-right (optional) Whether to send filter payload to Lavalink or not, default is true. Set it to false if you set multiple filters at the same time

Returns
Description

This instance, for chaining calls

setVibrato()

Configs the vibrato filter

Property
Description

options

VibratoOptions | nullarrow-up-right The filter options, null to disable

apply

Booleanarrow-up-right (optional) Whether to send filter payload to Lavalink or not, default is true. Set it to false if you set multiple filters at the same time

Returns
Description

This instance, for chaining calls

Last updated