Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Commit 5e7e320

Browse files
authored
Automod trigger metadata update (bwmarrin#1305)
* Add AllowList and MentionTotalLimit * Add pointer * Fix
1 parent 4eef78e commit 5e7e320

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

structs.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,6 +1478,14 @@ type AutoModerationTriggerMetadata struct {
14781478
// Internally pre-defined wordsets which will be searched for in content.
14791479
// NOTE: should be only used with keyword preset trigger type.
14801480
Presets []AutoModerationKeywordPreset `json:"presets,omitempty"`
1481+
1482+
// Substrings which should not trigger the rule.
1483+
// NOTE: should be only used with keyword or keyword preset trigger type.
1484+
AllowList *[]string `json:"allow_list,omitempty"`
1485+
1486+
// Total number of unique role and user mentions allowed per message.
1487+
// NOTE: should be only used with mention spam trigger type.
1488+
MentionTotalLimit int `json:"mention_total_limit,omitempty"`
14811489
}
14821490

14831491
// AutoModerationActionType represents an action which will execute whenever a rule is triggered.

0 commit comments

Comments
 (0)