Package com.github.twitch4j.chat.flag
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 classAutoModFlag.AutoModFlagBuilder -
Method Summary
Modifier and Type Method Description static AutoModFlag.AutoModFlagBuilderbuilder()booleanequals(java.lang.Object o)intgetEndIndex()The index where the flagged item ends.@NotNull java.util.Map<FlagType,java.lang.Integer>getScores()Scores for the variousFlagTypes for this region of the message.intgetStartIndex()The index in the message where the flagged item starts.inthashCode()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Method Details
-
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
Scores for the variousFlagTypes 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-