Package discord4j.core.object.automod
Class AutoModRuleTriggerMetaData
- java.lang.Object
-
- discord4j.core.object.automod.AutoModRuleTriggerMetaData
-
public class AutoModRuleTriggerMetaData extends Object
An Auto Moderation Trigger MetaData- See Also:
- Auto Moderation Trigger MetaData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AutoModRuleTriggerMetaData.Preset
Represents a preset in the AutoModMetaData.
-
Constructor Summary
Constructors Constructor Description AutoModRuleTriggerMetaData(GatewayDiscordClient gateway, discord4j.discordjson.json.AutoModTriggerMetaData data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getAllowedFilter()
Gets substrings which will be exempt from triggering the preset trigger type.GatewayDiscordClient
getClient()
discord4j.discordjson.json.AutoModTriggerMetaData
getData()
List<String>
getKeywordFilter()
Gets substrings which will be searched for in content.Optional<Integer>
getMentionLimit()
Gets the total number of unique role and user mentions allowed per message if set.EnumSet<AutoModRuleTriggerMetaData.Preset>
getPresets()
Gets the internally pre-defined wordsets which will be searched for in content.List<Pattern>
getRegexPatterns()
Gets Regular expression patterns which will be matched against content.
-
-
-
Constructor Detail
-
AutoModRuleTriggerMetaData
public AutoModRuleTriggerMetaData(GatewayDiscordClient gateway, discord4j.discordjson.json.AutoModTriggerMetaData data)
-
-
Method Detail
-
getClient
public GatewayDiscordClient getClient()
-
getData
public discord4j.discordjson.json.AutoModTriggerMetaData getData()
-
getKeywordFilter
public List<String> getKeywordFilter()
Gets substrings which will be searched for in content.- Returns:
- a list of words.
-
getAllowedFilter
public List<String> getAllowedFilter()
Gets substrings which will be exempt from triggering the preset trigger type.- Returns:
- a list of words.
-
getRegexPatterns
public List<Pattern> getRegexPatterns()
Gets Regular expression patterns which will be matched against content.- Returns:
- a list of regex.
-
getMentionLimit
public Optional<Integer> getMentionLimit()
Gets the total number of unique role and user mentions allowed per message if set.- Returns:
- the mention limit if available.
-
getPresets
public EnumSet<AutoModRuleTriggerMetaData.Preset> getPresets()
Gets the internally pre-defined wordsets which will be searched for in content.- Returns:
- a EnumSet with all the presets in the class.
-
-