addMember

fun addMember(channelId: String, playerId: UUID, role: ChannelRole): Result<Unit>(source)

Adds a member to a channel.

Return

Result indicating success or failure of the operation.

Parameters

channelId

The ID of the channel.

playerId

The UUID of the player to add.

role

The role of the new member.

Throws

if the channel does not exist.

if the channel has reached the maximum member limit.