banPlayer

fun banPlayer(actorId: UUID, targetId: UUID, channelId: String): Result<Unit>(source)

Bans targetId from channelId on actorId's authority.

The moderation rules live here rather than in the ban command so that every path to a ban - commands today, anything else later - is held to them.

Return

Result indicating success or failure.

Throws

if actorId does not hold a higher role than the target.

if the target is exempt from moderation.