@lavaclient/plugin-lavasearch

1.0.2 • Public • Published

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");
  1. Loads a LavaSearch result with tracks, artists, and albums. Throws an exception if nothing was found.
  2. Does the same thing as 1 but returns null if nothing was found.

Package Sidebar

Install

npm i @lavaclient/plugin-lavasearch

Weekly Downloads

6

Version

1.0.2

License

Apache-2.0

Unpacked Size

47.8 kB

Total Files

18

Last publish

Collaborators

  • the2dperson