mutePostIssue

fun mutePostIssue(userId: String, reason: String, duration: Int, appealable: Boolean, banlists: List<Int>, muteType: MuteType): JsonObject?(source)

Endpoint for issuing mutes

Endpoint: /Api/Mute/Issue

Return

the response body as a JsonObject

Parameters

userId

id of the user

reason

reason for the mute

duration

duration of the mute in seconds

appealable

should the mute be appealable?

banlists

list of banlists to use

muteType

which type of mute to choose

Throws

inherited from CedmodException