Tomato6966 / lavalink-client

Easy, flexible and feature-rich lavalink@v4 Client. Both for Beginners and Proficients.
https://tomato6966.github.io/lavalink-client/
MIT License
48 stars 13 forks source link

Suggestion? #13

Closed EvilG-MC closed 10 months ago

EvilG-MC commented 10 months ago

This may be strange, but there is a possibility that the LavalinkManager class has a method either LavalinkManager#search or LavalinkManager#searchTrack, exclusively to search for songs, without having to create/get the player, just get the song full result list.

I really hope I can explain myself...

~I can't assign labels or anything, So I used the title haha~

Tomato6966 commented 10 months ago

As already explained in other issues: I dont allow search from manager, because if u search from a different node, than your player is. And you play from that searchresult, the player will fail. Therefore you can use node.search and node.lavaSearch.

To access a node without creating the player do manager.nodeManager.nodes.get("id")

EvilG-MC commented 10 months ago

I see, in my case it was for an autocomplete and I need only the search results, I'll try with that, thanks for answering!

Tomato6966 commented 10 months ago

In my autocomplete, i create the player.

You dont need to connect it before you search, so it really is zero delay.. Anyways