Cedmod

class Cedmod(instanceUrl: String, apiKey: String, readTimeout: Long = 60, writeTimeout: Long = 60)(source)

Constructors

Link copied to clipboard
constructor(instanceUrl: String, apiKey: String, readTimeout: Long = 60, writeTimeout: Long = 60)

Functions

Link copied to clipboard
fun appealHandle(appealId: String, handleType: HandleAppealType, reason: String, duration: Int): Int?

An endpoint for handling appeals

Link copied to clipboard
fun appealQuery(q: String, max: Int = 10, page: Int = 0, close: Boolean = false): JsonObject

An endpoint to query existing appeals

Link copied to clipboard
fun banlistDelete(banlist: String, migrateList: String): Int

Endpoint for deleting banlists

Link copied to clipboard
fun banlistPut(banlistId: String, queryServerId: String, serverWriteBans: String, serverReadBans: String, serverWriteMutes: String, serverReadMutes: String, serverWriteWarns: String, serverReadWarns: String, name: String, isMaster: Boolean = false, isDefaultPanel: Boolean = false, isDefaultViewPanel: Boolean = true): Int

Endpoint for creating banlists

Link copied to clipboard
fun banlistQuery(q: String, page: Int = 0, max: Int = 0): JsonObject?

Endpoint for querying banlists

Link copied to clipboard
fun banLogPut(banId: String, logReason: String): Int

Endpoint for adding ban-logs

Link copied to clipboard
fun banLogQuery(q: String, banList: String, max: Int = 10, page: Int = 0, idOnly: Boolean = false): JsonObject?

Endpoint for querying banLogs

Link copied to clipboard
fun banPatchAppealState(banId: String, logReason: String, appealType: AppealStateType): Int

Endpoint for changing the appeal state of the ban

Link copied to clipboard
fun banPatchBypassable(banId: String, logReason: String, bypassableIds: List<String>): Int

Endpoint for changing bypass ability of a ban

Link copied to clipboard
fun banPatchDuration(banId: String, logReason: String, duration: Int): Int

Endpoint for changing the ban duration

Link copied to clipboard
fun banPatchReason(banId: String, logReason: String, banReason: String): Int

Endpoint for changing the ban reason

Link copied to clipboard
fun banPostIssue(userId: String, reason: String, duration: Int, appealable: Boolean, banlists: List<Int>): Int

Endpoint for issuing a ban

Link copied to clipboard
fun banPutBan(banId: String, reason: String): Int

Endpoint for changing a ban

Link copied to clipboard
fun banQuery(q: String, banList: String, max: Int = 10, page: Int = 0, idOnly: Boolean = true): JsonObject?

Endpoint for querying bans

Link copied to clipboard
fun changelogGet(): JsonArray?

Endpoint for getting the cedmod changelog

Link copied to clipboard
fun feedbackPostSubmit(feedback: String, contact: Boolean = true, credit: Boolean = true): Int

Endpoint for submitting feedback

Link copied to clipboard
fun instanceGetStats(): JsonObject

Endpoint for getting server stats

Link copied to clipboard
fun muteLogPut(muteId: String, logReason: String): Int

Endpoint for adding mute logs

Link copied to clipboard
fun muteLogQuery(q: String, banList: String, max: Int = 10, page: Int = 0, idOnly: Boolean = false): JsonObject?

Endpoint for querying mute logs

Link copied to clipboard
fun mutePatchDuration(muteId: String, logReason: String, duration: Int): Int

Endpoint for changing mute duration

Link copied to clipboard
fun mutePatchReason(muteId: String, logReason: String, newReason: String): Int

Endpoint for changing mute reason

Link copied to clipboard
fun mutePatchType(muteId: String, logReason: String, muteType: MuteType): Int

Endpoint for changing the mute type

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

Endpoint for issuing mutes

Link copied to clipboard
fun muteQuery(q: String, banList: String, max: Int = 10, page: Int = 0, idOnly: Boolean = false): JsonObject?

Endpoint for querying mutes

Link copied to clipboard
fun playerQuery(q: String, max: Int = 10, page: Int = 0, staffOnly: Boolean = false, create: Boolean = false, sortLabel: String = "id_field", sortDirection: Int? = null, activityMin: Int = 14, basicStats: Boolean = true, moderationData: Boolean = false): Player

Endpoint for querying player stats