Filters
Configures shared filters and guarded native NodeLink effects on a player. Native effects are not Lavalink plugin-filter payloads.
Signatures below match the public source surface in 2.10.3. Use manager/player factories for ordinary application setup.
Constructorโ
constructor(player: Player, manager: Manager);
Propertiesโ
Methodsโ
updateFiltersโ
public async updateFilters(): Promise<this>;
Sends current filter settings. REST failures are currently caught and logged, so successful awaiting does not prove server acceptance.
syncFromNodeโ
public syncFromNode(payload: LavalinkFilters | { filters: LavalinkFilters }): this;
Hydrates direct or wrapped native filter data without sending a REST update.
getFilterStatusโ
public getFilterStatus(filter: AvailableFilters): boolean;
Returns preset/status flags; these are not a complete inventory of externally modified remote filters.
clearFiltersโ
public async clearFilters(): Promise<this>;
Clears all filters applied to the audio.
setEqualizerโ
public async setEqualizer(bands?: Band[]): Promise<this>;
Sets the own equalizer bands on the audio.
setKaraokeโ
public async setKaraoke(karaoke?: KaraokeOptions): Promise<this>;
Sets the own karaoke options to the audio.
setTimescaleโ
public async setTimescale(timescale?: TimescaleOptions): Promise<this>;
Sets the own timescale options to the audio.
setVibratoโ
public async setVibrato(vibrato?: VibratoOptions): Promise<this>;
Sets the own vibrato options to the audio.
setTremoloโ
public async setTremolo(tremolo?: TremoloOptions): Promise<this>;
Sets the tremolo options on the audio.
setChannelMixโ
public async setChannelMix(channelMix?: ChannelMixOptions): Promise<this>;
Sets the stereo channel mix options on the audio.
setLowPassโ
public async setLowPass(lowPass?: LowPassOptions): Promise<this>;
Sets the low pass filter options on the audio.
setHighPassโ
public async setHighPass(highpass?: HighPassOptions): Promise<this>;
Sets the NodeLink high pass filter options on the audio.
setEchoโ
public async setEcho(echo?: EchoOptions): Promise<this>;
Sets the NodeLink echo filter options on the audio.
setReverbโ
public async setReverb(reverb?: ReverbOptions): Promise<this>;
Sets the NodeLink reverb filter options on the audio.
setChorusโ
public async setChorus(chorus?: ChorusOptions): Promise<this>;
Sets the NodeLink chorus filter options on the audio.
setCompressorโ
public async setCompressor(compressor?: CompressorOptions): Promise<this>;
Sets the NodeLink compressor filter options on the audio.
setFlangerโ
public async setFlanger(flanger?: FlangerOptions): Promise<this>;
Sets the NodeLink flanger filter options on the audio.
setPhaserโ
public async setPhaser(phaser?: PhaserOptions): Promise<this>;
Sets the NodeLink phaser filter options on the audio.
setPhonographโ
public async setPhonograph(phonograph?: PhonographOptions): Promise<this>;
Sets the NodeLink phonograph filter options on the audio.
setSpatialโ
public async setSpatial(spatial?: SpatialOptions): Promise<this>;
Sets the NodeLink spatial filter options on the audio.
setTapeโ
public async setTape(tape?: TapeOptions): Promise<this>;
Sets the NodeLink tape filter options on the audio.
setNodeLinkHighPassโ
public async setNodeLinkHighPass(highpass?: HighPassOptions): Promise<this>;
Alias for setHighPass; uses the same native backend requirement.
setNodeLinkEchoโ
public async setNodeLinkEcho(echo?: EchoOptions): Promise<this>;
Alias for setEcho; uses the same native backend requirement.
setNodeLinkReverbโ
public async setNodeLinkReverb(reverb?: ReverbOptions): Promise<this>;
Alias for setReverb; uses the same native backend requirement.
setNodeLinkChorusโ
public async setNodeLinkChorus(chorus?: ChorusOptions): Promise<this>;
Alias for setChorus; uses the same native backend requirement.
setNodeLinkCompressorโ
public async setNodeLinkCompressor(compressor?: CompressorOptions): Promise<this>;
Alias for setCompressor; uses the same native backend requirement.
setNodeLinkFlangerโ
public async setNodeLinkFlanger(flanger?: FlangerOptions): Promise<this>;
Alias for setFlanger; uses the same native backend requirement.
setNodeLinkPhaserโ
public async setNodeLinkPhaser(phaser?: PhaserOptions): Promise<this>;
Alias for setPhaser; uses the same native backend requirement.
setNodeLinkPhonographโ
public async setNodeLinkPhonograph(phonograph?: PhonographOptions): Promise<this>;
Alias for setPhonograph; uses the same native backend requirement.
setNodeLinkSpatialโ
public async setNodeLinkSpatial(spatial?: SpatialOptions): Promise<this>;
Alias for setSpatial; uses the same native backend requirement.
setNodeLinkTapeโ
public async setNodeLinkTape(tape?: TapeOptions): Promise<this>;
Alias for setTape; uses the same native backend requirement.
setPluginFiltersโ
public async setPluginFilters(pluginFilters?: Record<string, unknown>, requiredPluginNames: string | string[] = Filters.defaultPluginFilterPlugins): Promise<this>;
Checks a nonempty payload against advertised plugin names. Defaults to LavaDSPX-Plugin aliases; custom names can be supplied. Empty calls clear without requiring a plugin.
setRotationโ
public async setRotation(rotation?: RotationOptions): Promise<this>;
Sets the own rotation options effect to the audio.
setDistortionโ
public async setDistortion(distortion?: DistortionOptions): Promise<this>;
Sets the own distortion options effect to the audio.
bassBoostโ
public async bassBoost(stage: number): Promise<this>;
Sets the bass boost level on the audio.
chipmunkโ
public async chipmunk(status: boolean): Promise<this>;
Toggles the chipmunk effect on the audio.
chinaโ
public async china(status: boolean): Promise<this>;
Toggles the "China" effect on the audio.
eightDโ
public async eightD(status: boolean): Promise<this>;
Toggles the 8D audio effect on the audio.
nightcoreโ
public async nightcore(status: boolean): Promise<this>;
Toggles the nightcore effect on the audio.
slowmoโ
public async slowmo(status: boolean): Promise<this>;
Toggles the slowmo effect on the audio.
softโ
public async soft(status: boolean): Promise<this>;
Toggles a soft equalizer effect to the audio.
tvโ
public async tv(status: boolean): Promise<this>;
Toggles the TV equalizer effect on the audio.
trebleBassโ
public async trebleBass(status: boolean): Promise<this>;
Toggles the treble/bass equalizer effect on the audio.
vaporwaveโ
public async vaporwave(status: boolean): Promise<this>;
Toggles the vaporwave effect on the audio.
distortโ
public async distort(status: boolean): Promise<this>;
Toggles the distortion effect on the audio.
popโ
public async pop(status: boolean): Promise<this>;
Toggles the party effect on the audio.
partyโ
public async party(status: boolean): Promise<this>;
Toggles a party effect on the audio.
earrapeโ
public async earrape(status: boolean): Promise<this>;
Toggles earrape effect on the audio.
electronicโ
public async electronic(status: boolean): Promise<this>;
Toggles electronic effect on the audio.
radioโ
public async radio(status: boolean): Promise<this>;
Toggles radio effect on the audio.
tremoloโ
public async tremolo(status: boolean): Promise<this>;
Toggles a tremolo effect on the audio.
darthvaderโ
public async darthvader(status: boolean): Promise<this>;
Toggless a darthvader effect on the audio.
daycoreโ
public async daycore(status: boolean): Promise<this>;
Toggles a daycore effect on the audio.
doubletimeโ
public async doubletime(status: boolean): Promise<this>;
Toggles a doubletime effect on the audio.
demonโ
public async demon(status: boolean): Promise<this>;
Toggles the demon effect on the audio.
Types and Guidesโ
- DistortionOptions
- KaraokeOptions
- RotationOptions
- TimescaleOptions
- TremoloOptions
- VibratoOptions
- ChannelMixOptions
- LowPassOptions
- HighPassOptions
- EchoOptions
- ChorusOptions
- CompressorOptions
- FlangerOptions
- PhaserOptions
- PhonographOptions
- SpatialOptions
- TapeOptions
- ReverbOptions
- AvailableFilters
- Manager
- Player
- LavalinkFilters
- NodeLink feature guides