unbanPlayer

fun unbanPlayer(channelId: String, playerId: UUID): Result<Channel>(source)

Unbans a player from a channel.

Return

Result containing the updated channel or an error.

Parameters

channelId

The ID of the channel.

playerId

The UUID of the player to unban.

Throws

if the channel does not exist.

if the player is not banned.