Link

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.

Constructors

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

Properties

Link copied to clipboard

Gets the player associated with this link. Returns null if it's not cached.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The voice connection state of this link

Functions

Link copied to clipboard

Creates or updates the player for this link.

Link copied to clipboard
fun destroy(): Mono<Unit>

Destroys this link, disconnecting the bot in the process.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Gets the player for this link. If the player is not cached, it will be retrieved or created on the server.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun loadItem(identifier: String): Mono<LavalinkLoadResult>

Load an item for the player.

Link copied to clipboard
fun onVoiceServerUpdate(newVoiceState: VoiceState)
Link copied to clipboard