interface AutoModerationRuleCreateOptions
extends
AutoModerationRuleEditOptionsexport interface AutoModerationRuleCreateOptions extends AutoModerationRuleEditOptions
Options used to create an auto moderation rule.
readonly AutoModerationActionOptions[] actions :
The actions that will execute when the auto moderation rule is triggered
externalboolean enabled :
Whether the auto moderation rule should be enabled
AutoModerationRuleEventType eventType :
The event type of the auto moderation rule
externalCollection<Snowflake, (GuildChannel|ThreadChannel)> | Array<GuildChannelResolvable> exemptChannels :
The channels that should not be affected by the auto moderation rule
externalCollection<Snowflake, Role> | Array<RoleResolvable> exemptRoles :
The roles that should not be affected by the auto moderation rule
string name :
The name of the auto moderation rule
externalstring reason :
The reason for creating the auto moderation rule
externalAutoModerationTriggerMetadataOptions triggerMetadata :
The trigger metadata of the auto moderation rule This property is required if using a triggerType
of AutoModerationRuleTriggerType, AutoModerationRuleTriggerType, AutoModerationRuleTriggerType, or AutoModerationRuleTriggerType.
AutoModerationRuleTriggerType triggerType :
The trigger type of the auto moderation rule