Class AutoModFlag

java.lang.Object
com.github.twitch4j.chat.flag.AutoModFlag

@Unofficial public final class AutoModFlag extends Object
Represents a region of a chat message that was flagged by AutoMod.
  • Method Details

    • builder

      public static AutoModFlag.AutoModFlagBuilder builder()
    • getStartIndex

      public int getStartIndex()
      The index in the message where the flagged item starts.
    • getEndIndex

      public int getEndIndex()
      The index where the flagged item ends.
    • getScores

      @NotNull public @NotNull Map<FlagType,Integer> getScores()
      Scores for the various FlagTypes for this region of the message.

      Can be empty, for example, if the region is a HTTP(S) link.

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object