Class AutoModRuleTriggerMetaData

    • Constructor Detail

      • AutoModRuleTriggerMetaData

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

      • 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.