ChannelChatMessage

data class ChannelChatMessage(val subscriptionType: String, val messageId: String, val timestamp: Instant, val broadcasterUserId: String, val broadcasterUserLogin: String, val broadcasterUserName: String, val chatterUserId: String, val chatterUserLogin: String, val chatterUserName: String, val chatMessageId: String, val message: ChatMessage, val color: String, val badges: List<ChatBadge>, val messageType: ChatMessageType, val cheer: ChatCheer?, val reply: ChatReply?, val channelPointsCustomRewardId: String?) : TwitchEvent

Twitch EventSub: channel.chat.message

Constructors

Link copied to clipboard
constructor(subscriptionType: String, messageId: String, timestamp: Instant, broadcasterUserId: String, broadcasterUserLogin: String, broadcasterUserName: String, chatterUserId: String, chatterUserLogin: String, chatterUserName: String, chatMessageId: String, message: ChatMessage, color: String, badges: List<ChatBadge>, messageType: ChatMessageType, cheer: ChatCheer?, reply: ChatReply?, channelPointsCustomRewardId: String?)

Properties

Link copied to clipboard

list of chat badges worn by the chatter.

Link copied to clipboard

the broadcaster's user ID.

Link copied to clipboard

the broadcaster's login.

Link copied to clipboard

the broadcaster's display name.

Link copied to clipboard

the ID of a channel points custom reward that was redeemed; null if not a reward redemption.

Link copied to clipboard

a UUID that identifies the message.

Link copied to clipboard

the user ID of the user that sent the message.

Link copied to clipboard

the user login of the user that sent the message.

Link copied to clipboard

the user display name of the user that sent the message.

Link copied to clipboard

cheer metadata if the message includes a cheer; null otherwise.

Link copied to clipboard

the color of the user's name in the chat room. Empty string if not set.

Link copied to clipboard

the structured chat message, containing text and fragments.

Link copied to clipboard
open override val messageId: String

Unique ID for this EventSub message.

Link copied to clipboard

the type of message.

Link copied to clipboard

reply metadata if this message is a reply to another message; null otherwise.

Link copied to clipboard
open override val subscriptionType: String

The EventSub subscription type string (e.g. channel.follow).

Link copied to clipboard
open override val timestamp: Instant

The Instant when the EventSub notification was sent, parsed from ISO-8601.