leaveChannel

fun leaveChannel(playerId: UUID): Result<Unit>(source)

Removes the player from the active channel completely. The player will be removed from the channel membership and the active channel will be cleared.

Return

Result indicating success or failure.

Parameters

playerId

The UUID of the player.

Throws

if the player does not have an active channel.