Package-level declarations

Types

Link copied to clipboard
class EqualizerBuilder(bands: MutableMap<Int, Float> = mutableMapOf())

Builder for Equalizer configuration.

Link copied to clipboard
interface JavaEventSource<T : Any>

Java equivalent of EventSource.

Link copied to clipboard
class JavaLavakord(parent: LavaKord)

Java interface for LavaKord.

Link copied to clipboard
class JavaLink(suspendingLink: Link) : CoroutineScope, JavaEventSource<Event>

Wrapper class for Link which replaces suspending functions by using CompletableFuture.

Link copied to clipboard
class JavaPlayer(suspendingPlayer: Player) : CoroutineScope, JavaEventSource<Event>

Wrapper class for Player which replaces suspending functions by using CompletableFuture.

Functions

Link copied to clipboard
fun addressStatus(node: Node): CompletableFuture<RoutePlannerStatus>

Retrieves the current address status of the route planner api. Can be null if no Route planner is set.

Link copied to clipboard
fun addressStatusOrNull(node: Node): CompletableFuture<RoutePlannerStatus?>

Retrieves the current address status of the route planner api. Can be null if no Route planner is set.

Link copied to clipboard

Creates a Java compatible interface for lavakord using CompletableFuture.

Link copied to clipboard
fun getLength(track: Track): Duration

Converts Track.length to a Duration because the Kotlin duration doesn't work in Java.

Link copied to clipboard
fun getPosition(track: Track): Duration

Converts Track.position to a Duration because the Kotlin duration doesn't work in Java.

Link copied to clipboard
fun loadItem(node: Node, query: String): CompletableFuture<LoadResult>
fun loadItem(link: JavaLink, query: String): CompletableFuture<LoadResult>

Loads an audio item from this Link.

Link copied to clipboard

Unmarks the route planner address.

Link copied to clipboard

Unmarks all failed route planner addresses.