From 5e7e320c89a2aa39b1b7d7c3f7ca5b27f7a2c6e3 Mon Sep 17 00:00:00 2001 From: ikafly144 Date: Wed, 28 Dec 2022 03:14:29 +0900 Subject: [PATCH] Automod trigger metadata update (#1305) * Add AllowList and MentionTotalLimit * Add pointer * Fix --- structs.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/structs.go b/structs.go index 016569b..5970ff4 100644 --- a/structs.go +++ b/structs.go @@ -1478,6 +1478,14 @@ type AutoModerationTriggerMetadata struct { // Internally pre-defined wordsets which will be searched for in content. // NOTE: should be only used with keyword preset trigger type. Presets []AutoModerationKeywordPreset `json:"presets,omitempty"` + + // Substrings which should not trigger the rule. + // NOTE: should be only used with keyword or keyword preset trigger type. + AllowList *[]string `json:"allow_list,omitempty"` + + // Total number of unique role and user mentions allowed per message. + // NOTE: should be only used with mention spam trigger type. + MentionTotalLimit int `json:"mention_total_limit,omitempty"` } // AutoModerationActionType represents an action which will execute whenever a rule is triggered.