banPlayer

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

Bans targetId from channelId.

The bypass rule lives here rather than in the ban command so that every path to a ban - commands today, anything else later - is held to it.

Return

Result indicating success or failure.

Throws

if the target is exempt from moderation.