switchChannel

fun switchChannel(playerId: UUID, channelId: String): Result<Unit>(source)

Switches the player's active channel to a channel they are already a member of.

Return

Result indicating success or failure.

Parameters

playerId

The UUID of the player.

channelId

The ID of the channel to switch to.

Throws

if the channel does not exist.

if the player is not a member of the channel.