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 and abitofevrything committed Jul 7, 2024
1 parent cb85af5 commit 0f6c6c3
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 0f6c6c3

Please sign in to comment.