Player
Interface allowing interaction with Lavalink player.
Properties
Link copied to clipboard
the default CoroutineScope to launch listeners in
Link copied to clipboard
the applied equalizers in this player
Link copied to clipboard
the currently playing Track
Link copied to clipboard
the position of the current song the player is at (or negative if playingTrack is null). Capped at the track length.
Link copied to clipboard
the position of the current song the player is at (or negative if playingTrack is null). Capped at the track length.
Functions
Link copied to clipboard
Applies all Filters to this player.
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
Link copied to clipboard
Changes the currently playing track to track.
Link copied to clipboard
Resets all applied filters.
Link copied to clipboard
abstract suspend fun searchAndPlayTrack(identifier: String, playOptionsBuilder: PlayOptions.() -> Unit)
Directly plays a single track.