Class ChatCrowdChant

java.lang.Object
com.github.twitch4j.chat.util.ChatCrowdChant

@Unofficial @Deprecated public final class ChatCrowdChant extends Object
Information regarding a Crowd Chant participation or initiation.
See Also:
  • Field Details

  • Constructor Details

    • ChatCrowdChant

      public ChatCrowdChant(String messageId, String text, boolean initiator, String channelName)
      Deprecated.
      Creates a new ChatCrowdChant instance.
      Parameters:
      messageId - The id for the parent message in the Crowd Chant.
      text - The text being chanted.
      initiator - Whether this message initiated a crowd chat. When false, the message is simply participating in the chant, rather than initiating.
      channelName - The name of the channel where the Crowd Chant took place.
  • Method Details

    • participate

      @Unofficial @Deprecated public void participate(ITwitchChat chat)
      Sends the same message in the same channel to participate in the Crowd Chant, with the proper chat tag.
      Parameters:
      chat - an authenticated TwitchChat instance.
    • parse

      @Nullable public static @Nullable ChatCrowdChant parse(IRCMessageEvent event)
      Deprecated.
      Attempts to parse the ChatCrowdChant information from a chat event.
      Parameters:
      event - the raw IRCMessageEvent.
      Returns:
      ChatCrowdChant (or null if parsing was unsuccessful)
    • getMessageId

      public String getMessageId()
      Deprecated.
      The id for the parent message in the Crowd Chant.
    • getText

      public String getText()
      Deprecated.
      The text being chanted.
    • isInitiator

      public boolean isInitiator()
      Deprecated.
      Whether this message initiated a crowd chat. When false, the message is simply participating in the chant, rather than initiating.
    • equals

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

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

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object