banPlayer

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

Bans 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 ban.

Throws

if the channel does not exist.