🪢Node

Represents a lavalink node structure

Constructor

new Node(options)

ParameterDescriptionType

options

The Node options

Properties

NameDescriptionType

state

The connection state between client and lavalink

stats

The stats of the node

versions

The versions object *

options

The node options

identifier

The node identifier

* Only works on my custom lavalink version

Methods

connect()

Connects to the lavalink node (this method is called automatically on Vulkava#start() )

disconnect()

Disconnects the lavalink node

ping()

Gets the latency between client and the lavalink node (this function only works on my custom lavalink version)

ReturnsDescription

The latency value

send()

Sends a payload to the lavalink node via WebSocket

ParameterDescription

payload

Object The payload object

getRecord()

Gets the recorded audio file

ParameterDescription

guildId

String The guild id

id

String The record id

ReturnsDescription

The audio file buffer

getAllRecords()

Gets a list with the ids of all recordings from the guild.

ParameterDescription

guildId

String The guild id

ReturnsDescription

An array of ids

deleteRecord()

Deletes one specific recorded audio file.

ParameterDescription

guildId

String The guild id

id

String The record id

deleteAllRecords()

Deletes all records from the guild.

ParameterDescription

guildId

String The guild id

Versions

PropertyDescription

LAVAPLAYER

String The lavaplayer version

JVM

String The java version

BUILD

String The build number

BUILDTIME

Number Timestamp of when .jar was built

SPRING

String The spring boot version

KOTLIN

String The kotlin version

Last updated