🌋
Vulkava
  • Introduction
  • Getting started
  • Custom Queue
  • Filters example
  • Common issues
  • 📚Docs
    • 🌋Vulkava
    • 🎵Player
    • 🎙️Recorder
    • 📑DefaultQueue
    • 🎛️Filters
    • 🪢Node
    • 💿Track
    • 💿UnresolvedTrack
  • 🖌️Abstract Classes
    • 📶AbstractExternalSource
    • 🎹AbstractQueue
  • 🔖Typedefs
    • 🔍SearchResult
    • 🌋VulkavaOptions
    • 🎛️FilterOptions
    • 🪢NodeOptions
    • 📡NodeStats
    • 🔎SEARCH_SOURCE
  • 📑Enums
    • ConnectionState
    • NodeState
Powered by GitBook
On this page
  • Properties
  • Methods
  1. Docs

Filters

Represents a filter structure for one Player

Adding a filter can have adverse effects on lavalink performance. These filters force Lavaplayer to decode all audio to PCM, even if the input was already in the Opus format that Discord uses. This means decoding and encoding audio that would normally require very little processing. This is often the case with YouTube videos.

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

options

setChannelMix()

Configs the channel mix filter

Property
Description

options

apply

Returns
Description

This instance, for chaining calls

setDistortion()

Configs the distortion filter

Property
Description

options

apply

Returns
Description

This instance, for chaining calls

setEqualizer()

Property
Description

options

apply

Returns
Description

This instance, for chaining calls

setKaraoke()

Configs the karaoke filter

Property
Description

options

apply

Returns
Description

This instance, for chaining calls

setLowPass()

Configs the low pass filter

Property
Description

options

apply

Returns
Description

This instance, for chaining calls

setRotation()

Configs the rotation filter

Property
Description

options

apply

Returns
Description

This instance, for chaining calls

setTimescale()

Configs the timescale filter

Property
Description

options

apply

Returns
Description

This instance, for chaining calls

setTremolo()

Configs the tremolo filter

Property
Description

options

apply

Returns
Description

This instance, for chaining calls

setVolume()

Property
Description

volume

apply

Returns
Description

This instance, for chaining calls

setVibrato()

Configs the vibrato filter

Property
Description

options

apply

Returns
Description

This instance, for chaining calls

PreviousDefaultQueueNextNode

Last updated 3 years ago

| The filter options, null to disable

(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

| The filter options, null to disable

(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

Configs the equalizer filter.

<> | An array of the band gains, null to disable

(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

| The filter options, null to disable

(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

| The filter options, null to disable

(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

| The filter options, null to disable

(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

| The filter options, null to disable

(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

| The filter options, null to disable

(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

The volume between 0-500 Default is 100

(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

| The filter options, null to disable

(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

📚
🎛️
Boolean
FilterOptions
FilterOptions
Boolean
Filters
Boolean
Filters
Array
Number
null
Boolean
Filters
Boolean
Filters
Boolean
Filters
Boolean
Filters
Boolean
Filters
Boolean
Filters
Number
Boolean
Filters
Boolean
Filters
null
null
null
null
null
null
null
null
Learn more
ChannelMixOptions
DistortionOptions
KaraokeOptions
LowPassOptions
RotationOptions
TimescaleOptions
TremoloOptions
VibratoOptions