hasRole

fun hasRole(playerId: UUID, channelId: String, requireRole: ChannelRole): Result<Boolean>(source)

Checks if a player has a specific role or higher in a channel.

Return

Result containing true if the player has the required role or higher, false otherwise.

Parameters

playerId

The UUID of the player.

channelId

The ID of the channel.

requireRole

The required ChannelRole.