updateMemberRole

fun updateMemberRole(channelId: String, playerId: UUID, newRole: ChannelRole): Result<Unit>(source)

Updates a member's role in a channel.

Return

Result indicating success or failure of the operation.

Parameters

channelId

The ID of the channel.

playerId

The UUID of the player whose role to update.

newRole

The new role for the member.

Throws

if the channel does not exist.