All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.json.request.AutoModerationRequests.kt Maven / Gradle / Ivy

The newest version!
package dev.kord.rest.json.request

import dev.kord.common.entity.*
import dev.kord.common.entity.optional.Optional
import dev.kord.common.entity.optional.OptionalBoolean
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
public data class AutoModerationRuleCreateRequest(
    val name: String,
    @SerialName("event_type")
    val eventType: AutoModerationRuleEventType,
    @SerialName("trigger_type")
    val triggerType: AutoModerationRuleTriggerType,
    @SerialName("trigger_metadata")
    val triggerMetadata: Optional = Optional.Missing(),
    val actions: List,
    val enabled: OptionalBoolean = OptionalBoolean.Missing,
    @SerialName("exempt_roles")
    val exemptRoles: Optional> = Optional.Missing(),
    @SerialName("exempt_channels")
    val exemptChannels: Optional> = Optional.Missing(),
)

@Serializable
public data class AutoModerationRuleModifyRequest(
    val name: Optional = Optional.Missing(),
    @SerialName("event_type")
    val eventType: Optional = Optional.Missing(),
    @SerialName("trigger_metadata")
    val triggerMetadata: Optional = Optional.Missing(),
    val actions: Optional> = Optional.Missing(),
    val enabled: OptionalBoolean = OptionalBoolean.Missing,
    @SerialName("exempt_roles")
    val exemptRoles: Optional> = Optional.Missing(),
    @SerialName("exempt_channels")
    val exemptChannels: Optional> = Optional.Missing(),
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy