FilterBuilder

Helper class fo builder Filters.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun build(): Filters

Builds the Filters object with the current configuration.

Link copied to clipboard

Removes a plugin filter with the given name.

Link copied to clipboard
fun setChannelMix(channelMix: ChannelMix?): FilterBuilder

Sets the channel mix filter on the player.

Link copied to clipboard
fun setDistortion(distortion: Distortion?): FilterBuilder

Sets the distortion filter on the player.

Link copied to clipboard
fun setEqualizer(equalizer: List<Band>): FilterBuilder

Set the equalizer bands on the player.

Link copied to clipboard

Set a specific band on the equalizer.

Link copied to clipboard
fun setKaraoke(karaoke: Karaoke?): FilterBuilder

Set the karaoke filter on the player.

Link copied to clipboard
fun setLowPass(lowPass: LowPass?): FilterBuilder

Sets the low pass filter on the player.

Link copied to clipboard
fun setPluginFilter(name: String, filter: JsonElement): FilterBuilder

Set custom filter data for a plugin.

Link copied to clipboard
fun setRotation(rotation: Rotation?): FilterBuilder

Sets the rotation filter on the player.

Link copied to clipboard
fun setTimescale(timescale: Timescale?): FilterBuilder

Sets the timescale filter on the player.

Link copied to clipboard
fun setTremolo(tremolo: Tremolo?): FilterBuilder

Sets the tremolo filter on the player.

Link copied to clipboard
fun setVibrato(vibrato: Vibrato?): FilterBuilder

Sets the vibrato filter on the player.

Link copied to clipboard

Sets the filter volume. If you just want to change the volume, it is highly recommended to use dev.arbjerg.lavalink.client.IUpdatablePlayer.setVolume instead.