updateChannelOwner

fun updateChannelOwner(channelId: String, newOwnerId: UUID): Result<Channel>(source)

Updates the channel owner.

Return

Result containing the updated channel or an error.

Parameters

channelId

The ID of the channel.

newOwnerId

The UUID of the new owner.

Throws

if the channel does not exist.