Star ✨ on GitHub

LavaSrcPlugin

API reference for the LavaSrcPlugin in Moonlink.js

LavaSrcPlugin Class

The LavaSrcPlugin integrates with the LavaSrc Lavalink plugin to provide support for various music sources like Spotify, Apple Music, Deezer, Yandex Music, VK Music, Tidal, and Qobuz. It declares a wide range of search and direct capabilities for these sources.

Properties

PropertyTypeDescription
namestringThe name of the plugin: lavasrc-plugin.
capabilitiesstring[]Declares various search and direct capabilities for supported sources.

Methods

load

loadmethod

Load Plugin

Initializes the plugin for a given node. This plugin primarily declares capabilities and does not require complex initialization.

Parameters
noderequiredNode
The node instance.

Returns & Example

Returnsvoid

// Called internally by PluginManager

::

unload

unloadmethod

Unload Plugin

Cleans up plugin resources. This plugin does not require complex cleanup.

Parameters
noderequiredNode
The node instance.

Returns & Example

Returnsvoid

// Called internally by PluginManager

onNodeInfoUpdate

onNodeInfoUpdatemethod

On Node Info Update

Called when the associated node's information is updated. This method logs debug information about the node update.

Parameters
noderequiredNode
The node instance whose information has been updated.

Returns & Example

Returnsvoid

// Called internally by PluginManager