lavalink-devs / Lavalink

Standalone audio sending node based on Lavaplayer.
https://lavalink.dev/
MIT License
1.58k stars 668 forks source link

Expose lavalink sessions for plugins #1042

Closed topi314 closed 6 months ago

topi314 commented 6 months ago

This pr adds the ability for plugins to easily access the sessions without having to import the lavalink server as a dependency

in some plugins i want to have rest routes such as /v4/sessions/{SESSION_ID}/players/{GUILD_ID}

this is rather annoying atm since you have to add the lavalink server as a compile only dependency

topi314 commented 6 months ago

two such example plugins would be https://github.com/topi314/LavaLyrics or https://github.com/topi314/LavaQueue