lavalink-devs / Lavalink

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

allow for deserialization of plugin info into data classes #973

Closed topi314 closed 11 months ago

topi314 commented 1 year ago

This allows JVM clients to easily deserialize plugin data into data classes

var track Track
var extendedPlaylist = track.deserializePluginInfo(ExtendedAudioTrack.Companion.serializer());
// type safe access to plugin info