twilight-rs / twilight

Powerful, flexible, and scalable ecosystem of Rust libraries for the Discord API.
https://discord.gg/twilight-rs
ISC License
689 stars 130 forks source link

Add the ability to get lavalink player state updates #476

Closed MOZGIII closed 4 years ago

MOZGIII commented 4 years ago

I'd like to track the updates to the player state, I see the opcodes in the logs but there's no API to get to them in the stream or queue for processing.

The goal is to display the lavalink player state at the chat message or at the rich presence.

MOZGIII commented 4 years ago

This is actually already available via this call: https://api.twilight.rs/twilight_lavalink/client/struct.Lavalink.html#method.add

The example doesn't mention it, and I was wondering how to get that rx. :smiley: