ChannelSubscriptionMessage

data class ChannelSubscriptionMessage(val subscriptionType: String, val messageId: String, val timestamp: Instant, val userId: String, val userLogin: String, val userName: String, val broadcasterUserId: String, val broadcasterUserLogin: String, val broadcasterUserName: String, val tier: String, val message: ChatMessage, val cumulativeMonths: Int, val streakMonths: Int?, val durationMonths: Int) : TwitchEvent

Twitch EventSub: channel.subscription.message

Constructors

Link copied to clipboard
constructor(subscriptionType: String, messageId: String, timestamp: Instant, userId: String, userLogin: String, userName: String, broadcasterUserId: String, broadcasterUserLogin: String, broadcasterUserName: String, tier: String, message: ChatMessage, cumulativeMonths: Int, streakMonths: Int?, durationMonths: Int)

Properties

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 total number of months the user has been subscribed to the channel.

Link copied to clipboard

the month duration of the subscription.

Link copied to clipboard

an object containing the resubscription message text and emote information.

Link copied to clipboard
open override val messageId: String

Unique ID for this EventSub message.

Link copied to clipboard

the number of consecutive months the user's current subscription has been active. Null if opted out.

Link copied to clipboard
open override val subscriptionType: String

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

Link copied to clipboard

the tier of the user's subscription: 1000 (Tier 1), 2000 (Tier 2), or 3000 (Tier 3).

Link copied to clipboard
open override val timestamp: Instant

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

Link copied to clipboard

the user ID of the user who sent a resubscription chat message.

Link copied to clipboard

the user login of the user who sent a resubscription chat message.

Link copied to clipboard

the user display name of the user who sent a resubscription chat message.