A Lavalink API client plug-in for better integration with LavaSearch
Feel free to join our Discord Server.
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.