Class AutoModRuleTriggerMetaData

java.lang.Object
discord4j.core.object.automod.AutoModRuleTriggerMetaData

public class AutoModRuleTriggerMetaData extends Object
An Auto Moderation Trigger MetaData
See Also:
  • Constructor Details

    • AutoModRuleTriggerMetaData

      public AutoModRuleTriggerMetaData(GatewayDiscordClient gateway, discord4j.discordjson.json.AutoModTriggerMetaData data)
  • Method Details

    • 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

      Gets the internally pre-defined wordsets which will be searched for in content.
      Returns:
      a EnumSet with all the presets in the class.