ServerInfo

interface ServerInfo

Represents server information of the connected server.

Types

Link copied to clipboard
interface PlayerInfo
Represents player-related information of the connected server.
Link copied to clipboard
interface VoiceInfo
Represents voice-related information of the connected server.

Functions

Link copied to clipboard
@NotNull
abstract fun createOpusDecoder(stereo: Boolean): @NotNull AudioDecoder
Creates a new Opus decoder based on server VoiceInfo.
Link copied to clipboard
@NotNull
abstract fun createOpusEncoder(stereo: Boolean): @NotNull AudioEncoder
Creates a new Opus encoder based on server VoiceInfo.
Link copied to clipboard
Gets the server's encryption details if available.
Link copied to clipboard
@NotNull
abstract fun getPlayerInfo(): @NotNull ServerInfo.PlayerInfo
Gets the player-related information received from the server.
Link copied to clipboard
@NotNull
abstract fun getRemoteAddress(): @NotNull InetSocketAddress
Gets the server's remote address.
Link copied to clipboard
@NotNull
abstract fun getSecret(): @NotNull UUID
Gets the server's secret.
Link copied to clipboard
@NotNull
abstract fun getServerId(): @NotNull UUID
Gets the server's unique identifier.
Link copied to clipboard
@NotNull
abstract fun getVoiceInfo(): @NotNull ServerInfo.VoiceInfo
Gets the server's voice information.