Interface TriggerConfig

All Superinterfaces:
All Known Implementing Classes:
AbstractKeywordTriggerConfig, AbstractTriggerConfig, AntiSpamTriggerConfig, CustomKeywordTriggerConfig, MentionSpamTriggerConfig, PresetKeywordTriggerConfig

public interface TriggerConfig extends SerializableData
Configuration for AutoModRule, which defines under what conditions the rule should be triggered.

Each rule is limited to a single trigger type. You can use the various factory methods on this interface to create a config.

Supported factories:


 AutoModRuleData rule = AutoModRule.onMessage("Invite Links",
   TriggerConfig.keywordFilter("*") // trigger on all invite links
     .setAllowList("")   // except certain whitelisted ones
See Also: