lavalink_rs.model.events
class
Ready:
Dispatched by Lavalink upon successful connection and authorization.
class
PlayerUpdate:
Dispatched periodically with the current state of a player.
class
Stats:
A collection of statistics sent every minute.
frame_stats: Optional[lavalink_rs.model.events.FrameStats]
The frame stats of the node.
This field is None if there's no players, or it was requested via the REST API.
class
Cpu:
class
Memory:
class
FrameStats:
class
TrackStart:
Dispatched when a track starts playing.
class
TrackEnd:
Dispatched when a track ends. track_exception and track_stuck will also trigger this event.
class
TrackEndReason:
The reason the track finished.
Finished =
TrackEndReason.Finished
LoadFailed =
TrackEndReason.LoadFailed
Stopped =
TrackEndReason.Stopped
Replaced =
TrackEndReason.Replaced
Cleanup =
TrackEndReason.Cleanup
class
TrackException:
Dispatched when a track throws an exception.
class
TrackStuck:
Dispatched when a track gets stuck while playing.
class
WebSocketClosed:
Dispatched when an audio WebSocket to Discord is closed.