Skip to content

Commit

Permalink
fix: update auto-mod builders (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexedia authored Jun 11, 2024
1 parent a502121 commit b06596b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/src/builders/guild/auto_moderation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,23 @@ class AutoModerationRuleBuilder extends CreateBuilder<AutoModerationRule> {
isMentionRaidProtectionEnabled: isMentionRaidProtectionEnabled,
);

AutoModerationRuleBuilder.memberProfile({
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.memberProfile,
metadata = TriggerMetadataBuilder(
keywordFilter: keywordFilter,
regexPatterns: regexPatterns,
allowList: allowList,
);

@override
Map<String, Object?> build() => {
'name': name,
Expand Down

0 comments on commit b06596b

Please sign in to comment.