Package-level declarations

Types

Link copied to clipboard
sealed class ClientEvent<T : Message>
Link copied to clipboard
sealed class EmittedEvent<T : Message.EmittedEvent> : ClientEvent<T>
Link copied to clipboard
Link copied to clipboard
class LavalinkClient(val userId: Long) : Closeable, Disposable
Link copied to clipboard
class LavalinkNode(val name: String, serverUri: URI, val password: String, val regionFilter: IRegionFilter?, val lavalink: LavalinkClient) : Disposable, Closeable

The Node is a physical instance of the lavalink server software.

Link copied to clipboard
class LavalinkPlayer(node: LavalinkNode, protocolPlayer: Player) : IUpdatablePlayer

Represents a player that is tied to a guild.

Link copied to clipboard
class Link(val guildId: Long, node: LavalinkNode)

A "Link" for linking a guild id to a node. Mainly just a data class that contains some shortcuts to the node. You should never store a link as it might be replaced internally without you knowing.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class PlayerUpdateEvent(val node: LavalinkNode, val guildId: Long, val state: PlayerState) : ClientEvent<Message.PlayerUpdateEvent>
Link copied to clipboard
data class ReadyEvent(val node: LavalinkNode, val resumed: Boolean, val sessionId: String) : ClientEvent<Message.ReadyEvent>
Link copied to clipboard
data class StatsEvent(val node: LavalinkNode, val frameStats: FrameStats?, val players: Int, val playingPlayers: Int, val uptime: Long, val memory: Memory, val cpu: Cpu) : ClientEvent<Message.StatsEvent>
Link copied to clipboard
data class TrackEndEvent(val node: LavalinkNode, val guildId: Long, val track: Track, val endReason: Message.EmittedEvent.TrackEndEvent.AudioTrackEndReason) : EmittedEvent<Message.EmittedEvent.TrackEndEvent>
Link copied to clipboard
data class TrackExceptionEvent(val node: LavalinkNode, val guildId: Long, val track: Track, val exception: TrackException) : EmittedEvent<Message.EmittedEvent.TrackExceptionEvent>
Link copied to clipboard
data class TrackStartEvent(val node: LavalinkNode, val guildId: Long, val track: Track) : EmittedEvent<Message.EmittedEvent.TrackStartEvent>
Link copied to clipboard
data class TrackStuckEvent(val node: LavalinkNode, val guildId: Long, val track: Track, val thresholdMs: Long) : EmittedEvent<Message.EmittedEvent.TrackStuckEvent>
Link copied to clipboard
data class WebSocketClosedEvent(val node: LavalinkNode, val guildId: Long, val code: Int, val reason: String, val byRemote: Boolean) : EmittedEvent<Message.EmittedEvent.WebSocketClosedEvent>

Functions

Link copied to clipboard