@lavaclient/plugin-lavasearch
v1.0.2
Published
Lavalink API client plug-in for better integration with LavaSearch
Downloads
7
Maintainers
Readme
LavaSearch Integration Plugin
A Lavalink API client plug-in for better integration with LavaSearch
🛟 Need Support?
Feel free to join our Discord Server.
⛓️ Example
Requires LavaSearch v1
import "@lavaclient/plugin-lavasearch/register";
// 1.
await node.api.loadSearch("spsearch:Odetari", "track", "artist", "album");
// 2.
await node.api.loadSearchOrNull("spsearch:Odetari", "track", "artist", "album");
- Loads a LavaSearch result with tracks, artists, and albums. Throws an exception if nothing was found.
- Does the same thing as 1 but returns null if nothing was found.