Package-level declarations

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun Link.addressStatus(): RoutePlannerStatus
suspend fun RestNode.addressStatus(): RoutePlannerStatus

Retrieves the current address status of the route planner api.

Link copied to clipboard
suspend fun Link.addressStatusOrNull(): RoutePlannerStatus?

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

suspend fun RestNode.addressStatusOrNull(): RoutePlannerStatus?

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

Link copied to clipboard
suspend fun RestNode.decodeTrack(base64: String): Track

Decodes a base64 encoded Lavalink track to a Track.

Link copied to clipboard
suspend fun RestNode.decodeTracks(tracks: Iterable<String>): List<Track>

Decodes a list of base64 encoded Lavalink track to a Track.

Link copied to clipboard
inline suspend fun <T, Resource : Any> RestNode.delete(resource: Resource): T
Link copied to clipboard
suspend fun Node.destroyPlayer(guildId: ULong)
suspend fun RestNode.destroyPlayer(guildId: ULong, sessionId: String)

Destroys the player for this guild in this session.

Link copied to clipboard
inline suspend fun <T, Resource : Any> RestNode.get(resource: Resource, builder: HttpRequestBuilder.() -> Unit = {}): T
Link copied to clipboard
suspend fun RestNode.getInfo(): Info

Request Lavalink information.

Link copied to clipboard
suspend fun Node.getPlayer(guildId: ULong): Player
suspend fun RestNode.getPlayer(guildId: ULong, sessionId: String): Player

Returns the Player for this guild in this session.

Link copied to clipboard
suspend fun RestNode.getStats(): Stats
Link copied to clipboard
suspend fun RestNode.getVersion(): String

Returns the plain version string of the Lavalink Server.

Link copied to clipboard
suspend fun Link.loadItem(query: String): LoadResult
suspend fun RestNode.loadItem(query: String): LoadResult

Loads an audio item from this Link.

Link copied to clipboard
suspend fun List<Track>.mapToTrack(): List<LavaplayerTrack>

Maps a List of Tracks to a List of LavaplayerTracks.

Link copied to clipboard
inline suspend fun <T, Resource : Any> RestNode.patch(resource: Resource, block: HttpRequestBuilder.() -> Unit): T
Link copied to clipboard
inline suspend fun <T, Resource : Any> RestNode.post(resource: Resource, block: HttpRequestBuilder.() -> Unit = {}): T
Link copied to clipboard
inline suspend fun <T, Resource : Any> RestNode.put(resource: Resource, block: HttpRequestBuilder.() -> Unit): T
Link copied to clipboard
inline suspend fun <T, Resource : Any> RestNode.request(method: HttpMethod, resource: Resource, builder: HttpRequestBuilder.() -> Unit = {}): T
Link copied to clipboard
inline suspend fun <T, Resource : Any> RestNode.requestWithBody(method: HttpMethod, resource: Resource, builder: HttpRequestBuilder.() -> Unit = {}): T
Link copied to clipboard
suspend fun Link.unmarkAddress(address: String)
suspend fun RestNode.unmarkAddress(address: String)

Unmarks the route planner address.

Link copied to clipboard
suspend fun Link.unmarkAllAddresses()

Unmarks all failed route planner addresses.

Link copied to clipboard
suspend fun Node.updatePlayer(guildId: ULong, noReplace: Boolean? = null, request: PlayerUpdate): Player
suspend fun RestNode.updatePlayer(guildId: ULong, sessionId: String, noReplace: Boolean? = null, request: PlayerUpdate): Player

Updates or creates the player for this guild if it doesn't already exist.

Link copied to clipboard
suspend fun Node.updateSession(request: SessionUpdate): Session
suspend fun RestNode.updateSession(sessionId: String, request: SessionUpdate): Session

Updates the current session.