ChannelGoalBegin

data class ChannelGoalBegin(val subscriptionType: String, val messageId: String, val timestamp: Instant, val id: String, val broadcasterUserId: String, val broadcasterUserLogin: String, val broadcasterUserName: String, val type: String, val description: String, val currentAmount: Int, val targetAmount: Int, val startedAt: Instant) : TwitchEvent

Twitch EventSub: channel.goal.begin

Constructors

Link copied to clipboard
constructor(subscriptionType: String, messageId: String, timestamp: Instant, id: String, broadcasterUserId: String, broadcasterUserLogin: String, broadcasterUserName: String, type: String, description: String, currentAmount: Int, targetAmount: Int, startedAt: Instant)

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 current progress toward the goal.

Link copied to clipboard

the goal description.

Link copied to clipboard
val id: String

the goal ID.

Link copied to clipboard
open override val messageId: String

Unique ID for this EventSub message.

Link copied to clipboard

RFC3339 timestamp of when the goal started.

Link copied to clipboard
open override val subscriptionType: String

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

Link copied to clipboard

the target amount for the goal.

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 goal type (e.g. follower, subscription, subscription_count, new_subscription, new_subscription_count).