Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lavalink_types/mod.ts

Deno typings for lavalink
Latest
import * as lavalinkTypes from "https://deno.land/x/lavalink_types@2.0.6/mod.ts";

Interfaces

Parameters required by GET /decodetrack.

An equalizer band, contains the band index and it's gain.

Base Interfaces

Filter that uses equalization to eliminate part of a band, usually targeting vocals.

Parameters required by GET /loadtracks

Base type for the Tremolo and Vibrato filter, this is NOT a valid lavalink filter.

Rotates the sound around the stereo channels/user headphones. aka Audio Panning.

Filter for changing the playback speed, pitch, and playback rate.

Type Aliases

Configures resuming for this session.

Response of GET /decodetrack.

Request body of POST /decodetracks.

Response of POST /decodetracks.

Destroys the player.

A base64 encoded track, due to lavalink being developed in java it cannot be decoded "normally".

T
Equalizer
deprecated

Configures the equalizer.

Payload for configuring the filters of a player.

Incoming messages.

All types of messages.

Returned if lavaplayer failed to load something.

Possible responses of GET /loadtracks.

Returned if no matches/sources could be found for a given identifier.

The available operations.

Outgoing messages.

Pauses playback of the current track.

Starts playback of the supplied track.

An event related to an audio player.

Returned when a playlist is loaded.

Classes

Returned when a search result is made (i.e. ytsearch: some song)

Seeks to the supplied position.

Stats about the node.

Stops playback of the current track.

Event that is fired when an exception occurs in an audio track that causes it to halt or not start.

Returned when a single track was loaded

Event that is fired when a track starts playing.

Event that is fired when a track was started, but no audio frames from it have arrived in a long time, specified by the threshold set.

Filter that uses amplification to create a shuddering effect, where the volume quickly oscillates.

Similar to tremolo, whereas vibrato oscillates the pitch.

Payload for providing an intercepted voice server & state update

T
Volume
deprecated

Sets the volume of the player.

Float value where 1.0 is 100%.

Event that is fired when an audio websocket (to Discord) is closed.