Lavalink Node
The Node is a physical instance of the lavalink server software.
Properties
Functions
Creates or updates a player.
Send a custom request to the lavalink node. Any host and port you set will be replaced with the node host automatically. The scheme must match your node's scheme, however. The response body will be deserialized using the provided deserializer.
Send a custom request to the lavalink node. Any host and port you set will be replaced with the node host automatically. The scheme must match your node's scheme, however.
Uses the node to decode a base64 encoded track.
Uses the node to decode a list of base64 encoded tracks.
Destroy a guild's player and remove it from the cache. This will also remove the associated link from the client.
Disables resuming, causing Lavalink to immediately drop all players upon this client disconnecting from it.
Enables resuming. This causes Lavalink to continue playing for timeout amount of time, during which we can reconnect without losing our session data.
Get a LavalinkPlayer from the player cache.
Get information about the node.
Gets the player from the guild id. If the player is not cached, it will be retrieved from the server. If the player does not exist on the node, it will be created.
Retrieves a list of all players from the lavalink node.
Load an item for the player.
Manually removes this node from the transfer state.
Puts the node into a transferring state, then starts transferring all players to other nodes. Once the node is put into this state, a reconnect or calling transferComplete() removes it from that state. Transferring state does not remove links from cache when deleting off this node, unless the transfer also fails.