isMember

fun isMember(channelId: String, playerId: UUID): Result<Boolean>(source)

Answers whether a player belongs to a channel without handing out the member list.

getChannelMembers copies the list defensively, which is the wrong price to pay for a question that only needs to scan it.

Return

Result containing true if the player is a member.

Parameters

channelId

The ID of the channel.

playerId

The UUID of the player.

Throws

if the channel does not exist.