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.
This plugin requires a Lavalink server running the LavaSrc plugin.
Properties
| Property | Type | Description |
|---|---|---|
name | string | The name of the plugin: lavasrc-plugin. |
capabilities | string[] | 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
Returns & Example
Returns
• void
// Called internally by PluginManager
::
unload
unloadmethod
Unload Plugin
Cleans up plugin resources. This plugin does not require complex cleanup.
Parameters
noderequiredNode
Returns & Example
Returns
• void
// 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
Returns & Example
Returns
• void
// Called internally by PluginManager