HypeTrainBegin

data class HypeTrainBegin(val subscriptionType: String, val messageId: String, val timestamp: Instant, val id: String, val broadcasterUserId: String, val broadcasterUserLogin: String, val broadcasterUserName: String, val total: Int, val progress: Int, val goal: Int, val topContributions: List<HypeTrainContribution>, val lastContribution: HypeTrainContribution?, val level: Int, val startedAt: Instant, val expiresAt: Instant, val isGoldenKappaTrain: Boolean = false, val allTimeHighLevel: Int = 0, val allTimeHighTotal: Int = 0) : TwitchEvent

Twitch EventSub: channel.hype_train.begin v2

Points are earned from viewer contributions:

  • Bits: 1 bit = 1 point

  • Tier 1 sub: 500 points

  • Tier 2 sub: 1,000 points

  • Tier 3 sub: 2,500 points

Gift subs contribute at their respective tier's point value per recipient.

Constructors

Link copied to clipboard
constructor(subscriptionType: String, messageId: String, timestamp: Instant, id: String, broadcasterUserId: String, broadcasterUserLogin: String, broadcasterUserName: String, total: Int, progress: Int, goal: Int, topContributions: List<HypeTrainContribution>, lastContribution: HypeTrainContribution?, level: Int, startedAt: Instant, expiresAt: Instant, isGoldenKappaTrain: Boolean = false, allTimeHighLevel: Int = 0, allTimeHighTotal: Int = 0)

Properties

Link copied to clipboard

the all-time highest level reached on this channel (v2).

Link copied to clipboard

the all-time highest total points on this channel (v2).

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 time when the Hype Train expires; extended when it reaches a new level.

Link copied to clipboard
val goal: Int

the number of points required to reach the next level.

Link copied to clipboard
val id: String

the Hype Train ID.

Link copied to clipboard

whether the Hype Train is a Golden Kappa Train (v2).

Link copied to clipboard

the most recent contribution with user_id, type, and total.

Link copied to clipboard
val level: Int

the starting level of the Hype Train.

Link copied to clipboard
open override val messageId: String

Unique ID for this EventSub message.

Link copied to clipboard

the number of points contributed at the current level.

Link copied to clipboard

the time when the Hype Train started.

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.

Link copied to clipboard

the contributors with the most points, each with user_id, type, and total.

Link copied to clipboard
val total: Int

total points contributed to the Hype Train.