πŸͺ’Node

Represents a lavalink node structure

Constructor

new Node(options)

Parameter
Description
Type

options

The Node options

Properties

Name
Description
Type

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 versionarrow-up-right

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 versionarrow-up-right)

Returns
Description

send()

Sends a payload to the lavalink node via WebSocket

Parameter
Description

payload

Objectarrow-up-right The payload object

getRecord()

Gets the recorded audio file

Parameter
Description

guildId

id

Stringarrow-up-right The record id

Returns
Description

getAllRecords()

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

Parameter
Description

guildId

deleteRecord()

Deletes one specific recorded audio file.

Parameter
Description

guildId

id

Stringarrow-up-right The record id

deleteAllRecords()

Deletes all records from the guild.

Parameter
Description

guildId

Versions

Property
Description

LAVAPLAYER

Stringarrow-up-right The lavaplayer version

JVM

Stringarrow-up-right The java version

BUILD

Stringarrow-up-right The build number

BUILDTIME

Numberarrow-up-right Timestamp of when .jar was built

SPRING

Stringarrow-up-right The spring boot version

KOTLIN

Stringarrow-up-right The kotlin version

Last updated