Package discord4j.core.object.automod
Class AutoModRuleTriggerMetaData
java.lang.Object
discord4j.core.object.automod.AutoModRuleTriggerMetaData
An Auto Moderation Trigger MetaData
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Represents a preset in the AutoModMetaData. -
Constructor Summary
ConstructorDescriptionAutoModRuleTriggerMetaData
(GatewayDiscordClient gateway, discord4j.discordjson.json.AutoModTriggerMetaData data) -
Method Summary
Modifier and TypeMethodDescriptionGets substrings which will be exempt from triggering the preset trigger type.discord4j.discordjson.json.AutoModTriggerMetaData
getData()
Gets substrings which will be searched for in content.Gets the total number of unique role and user mentions allowed per message if set.Gets the internally pre-defined wordsets which will be searched for in content.Gets Regular expression patterns which will be matched against content.
-
Constructor Details
-
AutoModRuleTriggerMetaData
public AutoModRuleTriggerMetaData(GatewayDiscordClient gateway, discord4j.discordjson.json.AutoModTriggerMetaData data)
-
-
Method Details
-
getClient
-
getData
public discord4j.discordjson.json.AutoModTriggerMetaData getData() -
getKeywordFilter
Gets substrings which will be searched for in content.- Returns:
- a list of words.
-
getAllowedFilter
Gets substrings which will be exempt from triggering the preset trigger type.- Returns:
- a list of words.
-
getRegexPatterns
Gets Regular expression patterns which will be matched against content.- Returns:
- a list of regex.
-
getMentionLimit
Gets the total number of unique role and user mentions allowed per message if set.- Returns:
- the mention limit if available.
-
getPresets
Gets the internally pre-defined wordsets which will be searched for in content.- Returns:
- a EnumSet with all the presets in the class.
-