Star ✨ on GitHub

YouTubePlugin

API reference for the YouTubePlugin in Moonlink.js

YouTubePlugin Class

The YouTubePlugin integrates with Lavalink to provide YouTube search capabilities. It declares capabilities for YouTube, YouTube Music, and generic YouTube search.

Properties

PropertyTypeDescription
namestringThe name of the plugin: youtube-plugin.
capabilitiesstring[]Declares search:youtube, search:ytsearch, and search:ytmsearch capabilities.

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