Skip to main content

ruvyrias / Exports / Filters

Class: Filters

The Filters class that is used to apply filters to the currently player

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Filters(player, options?): Filters

Parameters

NameType
playerPlayer
options?FiltersOptions

Returns

Filters

Defined in

src/Player/Filters.ts:176

Properties

_8d

_8d: null | boolean

Defined in

src/Player/Filters.ts:174


bassBoost

bassBoost: number

Defined in

src/Player/Filters.ts:168


channelMix

channelMix: null | ChannelMixOptions

Defined in

src/Player/Filters.ts:166


chipmunk

chipmunk: null | boolean

Defined in

src/Player/Filters.ts:173


daycore

daycore: null | boolean

Defined in

src/Player/Filters.ts:171


distortion

distortion: null | DistortionOptions

Defined in

src/Player/Filters.ts:165


equalizer

equalizer: Band[]

Defined in

src/Player/Filters.ts:159


karaoke

karaoke: null | KaraokeOptions

Defined in

src/Player/Filters.ts:160


lowPass

lowPass: null | LowPassOptions

Defined in

src/Player/Filters.ts:167


nightcore

nightcore: null | boolean

Defined in

src/Player/Filters.ts:170


player

player: Player

Defined in

src/Player/Filters.ts:157


rotation

rotation: null | RotationOptions

Defined in

src/Player/Filters.ts:164


slowMode

slowMode: null | boolean

Defined in

src/Player/Filters.ts:169


timescale

timescale: null | TimescaleOptions

Defined in

src/Player/Filters.ts:161


tremolo

tremolo: null | TremoloOptions

Defined in

src/Player/Filters.ts:162


vaporwave

vaporwave: null | boolean

Defined in

src/Player/Filters.ts:172


vibrato

vibrato: null | VibratoOptions

Defined in

src/Player/Filters.ts:163


volume

volume: number

Defined in

src/Player/Filters.ts:158

Methods

clearFilters

clearFilters(): Promise<Filters>

Clear all filters for the player.

Returns

Promise<Filters>

  • Returns the current instance of the filters.

Defined in

src/Player/Filters.ts:450


set8D

set8D(value, options?): Promise<Filters>

Sets the 8D filter for the player.

Parameters

NameTypeDescription
valuebooleanBoolean value indicating whether to enable or disable the 8D filter.
options?RotationOptionsOptional custom parameters.

Returns

Promise<Filters>

  • Returns the current instance of the filters.

Defined in

src/Player/Filters.ts:424


setBassboost

setBassboost(value): Promise<Filters>

Sets the Bass boost value for the player.

Parameters

NameTypeDescription
valuenumberThe value of the Bass boost, it should be between 0 to 5.

Returns

Promise<Filters>

  • Returns the current instance of the filters.

Defined in

src/Player/Filters.ts:310


setChannelMix

setChannelMix(mix): Promise<Filters>

Changes the channel mix options applied to the currently player.

Parameters

NameTypeDescription
mixChannelMixOptionsAn object that conforms to the ChannelMixOptions type, defining the channel mix to apply.

Returns

Promise<Filters>

  • Returns the current Filters instance for method chaining.

Defined in

src/Player/Filters.ts:286


setChipmunk

setChipmunk(value, options?): Promise<Filters>

Sets the Chipmunk filter for the player.

Parameters

NameTypeDescription
valuebooleanBoolean value indicating whether to enable or disable the Chipmunk filter.
options?TimescaleOptionsOptional custom parameters.

Returns

Promise<Filters>

  • Returns the current instance of the filters.

Defined in

src/Player/Filters.ts:438


setDaycore

setDaycore(value, options?): Promise<Filters>

Sets the Daycore filter for the player.

Parameters

NameTypeDescription
valuebooleanBoolean value indicating whether to enable or disable Daycore.
options?Omit<TimescaleOptions, "speed">Optional custom parameters.

Returns

Promise<Filters>

  • Returns the current instance of the filters.

Defined in

src/Player/Filters.ts:367


setDistortion

setDistortion(distortion): Promise<Filters>

Changes the distortion options applied to the currently player.

Parameters

NameTypeDescription
distortionDistortionOptionsAn object that conforms to the DistortionOptions type, defining the distortion to apply.

Returns

Promise<Filters>

  • Returns the current Filters instance for method chaining.

Defined in

src/Player/Filters.ts:274


setEqualizer

setEqualizer(bands): Promise<Filters>

Sets the equalizer bands for the currently player.

Parameters

NameTypeDescription
bandsBand[]An array of bands to set the equalizer to.

Returns

Promise<Filters>

  • Returns the Filters instance for method chaining.

Defined in

src/Player/Filters.ts:202


setKaraoke

setKaraoke(karaoke?): Promise<Filters>

Changes the karaoke options applied to the currently player.

Parameters

NameTypeDescription
karaoke?KaraokeOptionsAn object that conforms to the KaraokeOptions type, defining a range of frequencies to mute.

Returns

Promise<Filters>

  • Returns the current Filters instance for method chaining.

Defined in

src/Player/Filters.ts:214


setLowPass

setLowPass(pass): Promise<Filters>

Changes the low pass options applied to the currently player.

Parameters

NameTypeDescription
passLowPassOptionsAn object that conforms to the LowPassOptions type, defining the low pass to apply.

Returns

Promise<Filters>

  • Returns the current Filters instance for method chaining.

Defined in

src/Player/Filters.ts:298


setNightcore

setNightcore(value, options?): Promise<Filters>

Sets the Nightcore filter for the player.

Parameters

NameTypeDescription
valuebooleanBoolean value indicating whether to enable or disable Nightcore.
options?TimescaleOptionsOptional custom parameters.

Returns

Promise<Filters>

  • Returns the current instance of the filters.

Defined in

src/Player/Filters.ts:347


setRotation

setRotation(rotation?): Promise<Filters>

Changes the rotation options applied to the currently player.

Parameters

NameTypeDescription
rotation?null | RotationOptionsAn object that conforms to the RotationOptions type, defining the rotation to apply.

Returns

Promise<Filters>

  • Returns the current Filters instance for method chaining.

Defined in

src/Player/Filters.ts:262


setSlowmode

setSlowmode(value, options?): Promise<Filters>

Sets the Slowmode filter for the player.

Parameters

NameTypeDescription
valuebooleanThe value to enable or disable Slowmode.
options?TimescaleOptionsOptional custom parameters.

Returns

Promise<Filters>

  • Returns the current instance of the filters.

Defined in

src/Player/Filters.ts:333


setTimescale

setTimescale(timescale?): Promise<Filters>

Changes the timescale options applied to the currently player.

Parameters

NameTypeDescription
timescale?null | TimescaleOptionsAn object that conforms to the TimescaleOptions type, defining the timescale to apply.

Returns

Promise<Filters>

  • Returns the current Filters instance for method chaining.

Defined in

src/Player/Filters.ts:226


setTremolo

setTremolo(tremolo?): Promise<Filters>

Changes the tremolo options applied to the currently player.

Parameters

NameTypeDescription
tremolo?null | TremoloOptionsAn object that conforms to the TremoloOptions type, defining the tremolo to apply.

Returns

Promise<Filters>

  • Returns the current Filters instance for method chaining.

Defined in

src/Player/Filters.ts:238


setVaporwave

setVaporwave(value, options?): Promise<Filters>

Sets the Vaporwave filter for the player.

Parameters

NameTypeDescription
valuebooleanBoolean value indicating whether to enable or disable Vaporwave.
options?TimescaleOptionsOptional custom parameters.

Returns

Promise<Filters>

  • Returns the current instance of the filters.

Defined in

src/Player/Filters.ts:404


setVibrato

setVibrato(vibrato?): Promise<Filters>

Changes the vibrato options applied to the currently player.

Parameters

NameTypeDescription
vibrato?null | VibratoOptionsAn object that conforms to the VibratoOptions type, defining the vibrato to apply.

Returns

Promise<Filters>

  • Returns the current Filters instance for method chaining.

Defined in

src/Player/Filters.ts:250


updateFilters

updateFilters(): Promise<Filters>

Updates the filters applied to the currently player on the lavalink node.

Returns

Promise<Filters>

  • Returns the current Filters instance with updated filters.

Defined in

src/Player/Filters.ts:463