Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Equalizer(val band: Int, val gain: Float)

There are 15 equalizers (0-14) that can be changed.

Link copied to clipboard

Builder for equalizer settings.

Link copied to clipboard

Representation of the filter configuration.

Link copied to clipboard
data class LavaplayerTrack(val version: Byte, val track: String, val title: String, val author: String, val length: Duration, val identifier: String, val isStream: Boolean, val isSeekable: Boolean, val uri: String?, val source: String, val position: Duration)

Representation of a Lavalink audio track.

Link copied to clipboard
interface Player : EventSource<Event>

Interface allowing interaction with Lavalink player.

Link copied to clipboard

Options for playing a new track.

Properties

Link copied to clipboard
const val DEFAULT_GAIN: Float = 0.0f

The default gain of all equalizers

Link copied to clipboard

Returns the guildId for a Player.

Link copied to clipboard

Retrieves the RestNode behind a Player.

Functions

Link copied to clipboard
suspend fun Player.applyFilters(block: Filters.() -> Unit)

Applies all Filters to this player.

Link copied to clipboard

Configures the Filters.ChannelMix filter.

Link copied to clipboard

Configures the Filters.Distortion filter.

Link copied to clipboard

Sets the gain of this band to gain.

Link copied to clipboard

Configures the Filters.Karaoke filter.

Link copied to clipboard

Configures the Filters.LowPass filter.

Link copied to clipboard
inline fun Filters.pluginFilter(name: String, builder: JsonObjectBuilder.() -> Unit)

Registers a plugin based filter with name.

Link copied to clipboard

Resets the gain of this band to default.

Link copied to clipboard
suspend fun Player.resetFilters()

Resets all applied filters.

Link copied to clipboard

Configures the Filters.Rotation filter.

Link copied to clipboard

Configures the Filters.Timescale filter.

Link copied to clipboard

Configures the Filters.Tremolo filter.

Link copied to clipboard

Configures the Filters.Vibrato filter.