Class AutomodCaughtMessage.Fragment

java.lang.Object
com.github.twitch4j.pubsub.domain.AutomodCaughtMessage.Fragment
Enclosing class:
AutomodCaughtMessage

public static class AutomodCaughtMessage.Fragment extends Object
  • Constructor Details

    • Fragment

      public Fragment()
  • Method Details

    • isFragmentFlagged

      public boolean isFragmentFlagged()
      Returns:
      whether this fragment of the message was flagged by AutoMod.
    • isFragmentLink

      @Unofficial public boolean isFragmentLink()
      Returns:
      whether this fragment of the message is a link.
    • isFragmentMention

      @Unofficial public boolean isFragmentMention()
      Returns:
      whether this fragment of the message is simply a user mention.
    • getText

      public String getText()
      Plain text fragment of the message sent.
    • getAutomod

      @Nullable public @Nullable AutomodCaughtMessage.FragmentFlags getAutomod()
    • getEmoticon

      @Nullable public @Nullable AutomodCaughtMessage.FragmentEmote getEmoticon()
      Information about an emote if present in the message.
    • getLink

      @Nullable public @Nullable AutomodCaughtMessage.FragmentLink getLink()
    • getUserMention

      @Nullable public @Nullable AutomodCaughtMessage.FragmentMention getUserMention()
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object