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

x/lavadeno/deps.ts

lavadeno is a simple, easy-to-use, and flexible lavalink client built on the Deno Runtime.
Latest
import * as lavadeno from "https://deno.land/x/lavadeno@3.3.0/deps.ts";

Functions

Returns true if input headers are usable for WebSocket, otherwise false.

Closes the provided pogsocket with a code and/or reason.

Closes the connection of the supplied pogsocket, only for internal use.

Creates a mask of n-byte length.

Create value of Sec-WebSocket-Accept header from inputted nonce.

Returns base64 encoded 16 bytes string for Sec-WebSocket-Key header.

Whether a websocket message is binary.

Sends a message to the server.

Unmask masked websocket payload

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.

Represents a websocket frame.

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".

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
Lavalink.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.