Package-level declarations

Types

Link copied to clipboard
interface Event

Bae class for all events.

Link copied to clipboard
interface EventSource<T : Any>

A source of events of type T.

Link copied to clipboard
interface Link : CoroutineScope

Representation of a link between a Guild and a Lavalink node.

Link copied to clipboard
interface Node : RestNode, EventSource<Event> , Closeable

Representation of a Lavalink node, supporting rest calls and a websocket connection.

Link copied to clipboard

Event fired when a player gets updated.

Link copied to clipboard
interface RestNode

Representation of a Lavalink node supporting rest calls.

Link copied to clipboard
interface StatsEvent

Event received regularly from nodes to update node stats.

Link copied to clipboard

Track fired when a track ended.

Link copied to clipboard
interface TrackEvent : Event

Base class for events for a Track.

Link copied to clipboard

Event fired when an Exception occurs whilst trying to play a track.

Link copied to clipboard

Even fired when a new track starts playing.

Link copied to clipboard

Event that is fired when a track was started, but no audio frames from it have arrived in a ULong time

Link copied to clipboard

Event fired when Discord closes the websocket connection.

Functions

Link copied to clipboard
inline fun <T : Any, E : T> EventSource<T>.on(scope: CoroutineScope = coroutineScope, noinline consumer: suspend E.() -> Unit): Job

Convenience method that will invoke the consumer on every event T created by EventSource.events.

inline fun <T : Event> EventSource<Event>.on(scope: CoroutineScope = coroutineScope, noinline consumer: suspend T.() -> Unit): Job

Listens for a TrackEvent