interface AutoModerationRuleCreateOptions
extends
AutoModerationRuleEditOptionsexport interface AutoModerationRuleCreateOptions extends AutoModerationRuleEditOptionsOptions used to create an auto moderation rule.
actions : readonly AutoModerationActionOptions[]
The actions that will execute when the auto moderation rule is triggered
externalenabled : boolean
Whether the auto moderation rule should be enabled
eventType : AutoModerationRuleEventType
The event type of the auto moderation rule
externalexemptChannels : Collection<Snowflake, (GuildChannel|ThreadChannel)> | Array<GuildChannelResolvable>
The channels that should not be affected by the auto moderation rule
externalexemptRoles : Collection<Snowflake, Role> | Array<RoleResolvable>
The roles that should not be affected by the auto moderation rule
name : string
The name of the auto moderation rule
externalreason : string
The reason for creating the auto moderation rule
externaltriggerMetadata : AutoModerationTriggerMetadataOptions
The trigger metadata of the auto moderation rule This property is required if using a triggerType of AutoModerationRuleTriggerType, AutoModerationRuleTriggerType, AutoModerationRuleTriggerType, or AutoModerationRuleTriggerType.
triggerType : AutoModerationRuleTriggerType
The trigger type of the auto moderation rule