Filters
Table of contents
Constructors
Accessors
Methods
- apply
- clear
- set
- setChannelMix
- setDistortion
- setEqualizer
- setKaraoke
- setLowPass
- setRotation
- setTimescale
- setTremolo
- setVibrato
- setVolume
Constructors
constructor
• new Filters(player
)
Creates an instance of filters
Parameters
Name | Type |
---|---|
player | Player |
Defined in
Accessors
active
• get
active(): FilterOptions
Gets a copy of active filters object
Returns
Defined in
enabled
• get
enabled(): boolean
Checks if some filter is enabled
Returns
boolean
Defined in
Methods
apply
▸ apply(): void
Sends filters payload to Lavalink Node
Returns
void
Defined in
clear
▸ clear(): void
Clears all active filters
Returns
void
Defined in
set
▸ set(filters
): void
Sets all filters
Parameters
Name | Type |
---|---|
filters | FilterOptions |
Returns
void
Defined in
setChannelMix
▸ setChannelMix(options
, apply?
): Filters
Sets ChannelMix filter
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | null | ChannelMixOptions | undefined | The channel mix options |
apply | boolean | true | Whether to send filter payload to Lavalink or not |
Returns
The filters instance, for chaining calls
Defined in
setDistortion
▸ setDistortion(options
, apply?
): Filters
Sets Distortion filter
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | null | DistortionOptions | undefined | The distortion options |
apply | boolean | true | Whether to send filter payload to Lavalink or not |
Returns
The filters instance, for chaining calls
Defined in
setEqualizer
▸ setEqualizer(options
, apply?
): Filters
Sets Equalizer filter
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | null | number [] | undefined | The equalizer band array |
apply | boolean | true | Whether to send filter payload to Lavalink or not |
Returns
The filters instance, for chaining calls
Defined in
setKaraoke
▸ setKaraoke(options
, apply?
): Filters
Sets Karaoke filter
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | null | KaraokeOptions | undefined | The karaoke options |
apply | boolean | true | Whether to send filter payload to Lavalink or not |
Returns
The filters instance, for chaining calls
Defined in
setLowPass
▸ setLowPass(options
, apply?
): Filters
Sets LowPass filter
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | null | LowPassOptions | undefined | The lowpass options |
apply | boolean | true | Whether to send filter payload to Lavalink or not |
Returns
The filters instance, for chaining calls
Defined in
setRotation
▸ setRotation(options
, apply?
): Filters
Sets Rotation filter
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | null | RotationOptions | undefined | The rotation options |
apply | boolean | true | Whether to send filter payload to Lavalink or not |
Returns
The filters instance, for chaining calls
Defined in
setTimescale
▸ setTimescale(options
, apply?
): Filters
Sets Timescale filter
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | null | TimescaleOptions | undefined | The timescale options |
apply | boolean | true | Whether to send filter payload to Lavalink or not |
Returns
The filters instance, for chaining calls
Defined in
setTremolo
▸ setTremolo(options
, apply?
): Filters
Sets Tremolo filter
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | null | TremoloOptions | undefined | The tremolo options |
apply | boolean | true | Whether to send filter payload to Lavalink or not |
Returns
The filters instance, for chaining calls
Defined in
setVibrato
▸ setVibrato(options
, apply?
): Filters
Sets Vibrato filter
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | null | VibratoOptions | undefined | The vibrato options |
apply | boolean | true | Whether to send filter payload to Lavalink or not |
Returns
The filters instance, for chaining calls
Defined in
setVolume
▸ setVolume(vol
, apply?
): Filters
Sets the volume
Parameters
Name | Type | Default value | Description |
---|---|---|---|
vol | number | undefined | The volume to set [0,500] |
apply | boolean | true | Whether to send filter payload to Lavalink or not |
Returns
The filters instance, for chaining calls