AutoModerationRuleBuilder.keyword constructor
Implementation
AutoModerationRuleBuilder.keyword({
required this.name,
required this.eventType,
required this.actions,
this.isEnabled,
this.exemptRoleIds,
this.exemptChannelIds,
List<String>? keywordFilter,
List<String>? regexPatterns,
List<String>? allowList,
}) : triggerType = TriggerType.keyword,
metadata = TriggerMetadataBuilder(
keywordFilter: keywordFilter,
regexPatterns: regexPatterns,
allowList: allowList,
);