Builder

data class Builder(name: String? = null, serverUri: URI? = null, password: String? = null, regionFilter: IRegionFilter? = null, httpTimeout: Long = TIMEOUT_MS, sessionId: String? = null)

Constructors

Link copied to clipboard
constructor(name: String? = null, serverUri: URI? = null, password: String? = null, regionFilter: IRegionFilter? = null, httpTimeout: Long = TIMEOUT_MS, sessionId: String? = null)

Functions

Link copied to clipboard
Link copied to clipboard

Sets the http total call timeout. (Default: 10000ms)

Link copied to clipboard
Link copied to clipboard

Sets the password to access the node.

Link copied to clipboard

Sets a region filter on the node for regional load balancing (Default: none)

Link copied to clipboard

Sets the server URI of the Lavalink Node.

fun setServerUri(serverUriString: String): NodeOptions.Builder

Sets the server URI of the Lavalink Node. If no port is present in the URI, it will be set to 2333.

Link copied to clipboard

Sets the session ID that the client will use when first connecting to Lavalink. If the given session is still running on the Lavalink server, the session will be resumed.