AutoModerationRuleCreateRequest

data class AutoModerationRuleCreateRequest(val name: String, val eventType: AutoModerationRuleEventType, val triggerType: AutoModerationRuleTriggerType, val triggerMetadata: Optional<DiscordAutoModerationRuleTriggerMetadata> = Optional.Missing(), val actions: List<DiscordAutoModerationAction>, val enabled: OptionalBoolean = OptionalBoolean.Missing, val exemptRoles: Optional<List<Snowflake>> = Optional.Missing(), val exemptChannels: Optional<List<Snowflake>> = Optional.Missing())(source)

Constructors

Link copied to clipboard
constructor(name: String, eventType: AutoModerationRuleEventType, triggerType: AutoModerationRuleTriggerType, triggerMetadata: Optional<DiscordAutoModerationRuleTriggerMetadata> = Optional.Missing(), actions: List<DiscordAutoModerationAction>, enabled: OptionalBoolean = OptionalBoolean.Missing, exemptRoles: Optional<List<Snowflake>> = Optional.Missing(), exemptChannels: Optional<List<Snowflake>> = Optional.Missing())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "exempt_channels")
val exemptChannels: Optional<List<Snowflake>>
Link copied to clipboard
@SerialName(value = "exempt_roles")
val exemptRoles: Optional<List<Snowflake>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard