Class AutoModFlag

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

@Unofficial
public final class AutoModFlag
extends java.lang.Object
Represents a region of a chat message that was flagged by AutoMod.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  AutoModFlag.AutoModFlagBuilder  
  • Method Summary

    Modifier and Type Method Description
    static AutoModFlag.AutoModFlagBuilder builder()  
    boolean equals​(java.lang.Object o)  
    int getEndIndex()
    The index where the flagged item ends.
    @NotNull java.util.Map<FlagType,​java.lang.Integer> getScores()
    Scores for the various FlagTypes for this region of the message.
    int getStartIndex()
    The index in the message where the flagged item starts.
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 java.util.Map<FlagType,​java.lang.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​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

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

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object