Skip to content

Commit

Permalink
Add support for profile automod (#2580)
Browse files Browse the repository at this point in the history
  • Loading branch information
MinnDevelopment authored Aug 2, 2024
1 parent 0f2e837 commit 4feac7d
Showing 1 changed file with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,25 +95,25 @@ public static AutoModRuleData onMessage(@Nonnull String name, @Nonnull TriggerCo
return new AutoModRuleData(AutoModEventType.MESSAGE_SEND, name, triggerConfig);
}

// /**
// * Create a new {@link AutoModRule} which triggers on a member profile being updated.
// *
// * @param name
// * The name of the rule (1-{@value AutoModRule#MAX_RULE_NAME_LENGTH} characters)
// * @param triggerConfig
// * The trigger configuration for this rule
// *
// * @throws IllegalArgumentException
// * If null is provided or the name is not between 1 and {@value AutoModRule#MAX_RULE_NAME_LENGTH} characters
// *
// * @return The new {@link AutoModRuleData} instance
// */
// @Nonnull
// public static AutoModRuleData onMemberProfile(@Nonnull String name, @Nonnull TriggerConfig triggerConfig)
// {
// return new AutoModRuleData(AutoModEventType.MEMBER_UPDATE, name, triggerConfig)
// .putResponses(AutoModResponse.blockMemberInteraction());
// }
/**
* Create a new {@link AutoModRule} which triggers on a member profile being updated.
*
* @param name
* The name of the rule (1-{@value AutoModRule#MAX_RULE_NAME_LENGTH} characters)
* @param triggerConfig
* The trigger configuration for this rule
*
* @throws IllegalArgumentException
* If null is provided or the name is not between 1 and {@value AutoModRule#MAX_RULE_NAME_LENGTH} characters
*
* @return The new {@link AutoModRuleData} instance
*/
@Nonnull
public static AutoModRuleData onMemberProfile(@Nonnull String name, @Nonnull TriggerConfig triggerConfig)
{
return new AutoModRuleData(AutoModEventType.MEMBER_UPDATE, name, triggerConfig)
.putResponses(AutoModResponse.blockMemberInteraction());
}


/**
Expand Down

0 comments on commit 4feac7d

Please sign in to comment.