Class ChatMessage.ChatMessageBuilder

java.lang.Object
com.github.twitch4j.helix.domain.ChatMessage.ChatMessageBuilder
Enclosing class:
ChatMessage

public static class ChatMessage.ChatMessageBuilder extends Object
  • Method Details

    • broadcasterId

      public ChatMessage.ChatMessageBuilder broadcasterId(@NotNull @NotNull String broadcasterId)
      The ID of the broadcaster whose chat room the message will be sent to.
      Returns:
      this.
    • senderId

      public ChatMessage.ChatMessageBuilder senderId(@NotNull @NotNull String senderId)
      The ID of the user sending the message.

      This ID must match the user ID in the user access token (if not using an app access token).

      Returns:
      this.
    • message

      public ChatMessage.ChatMessageBuilder message(@NotNull @NotNull String message)
      The message to send.

      The message is limited to a maximum of 500 characters.

      Returns:
      this.
    • replyParentMessageId

      public ChatMessage.ChatMessageBuilder replyParentMessageId(@Nullable @Nullable String replyParentMessageId)
      The ID of the chat message being replied to, if any.
      Returns:
      this.
    • build

      public ChatMessage build()
    • toString

      public String toString()
      Overrides:
      toString in class Object