ChannelAdBreakBegin

data class ChannelAdBreakBegin(val subscriptionType: String, val messageId: String, val timestamp: Instant, val durationSeconds: Int, val startedAt: Instant, val isAutomatic: Boolean, val broadcasterUserId: String, val broadcasterUserLogin: String, val broadcasterUserName: String, val requesterUserId: String, val requesterUserLogin: String, val requesterUserName: String) : TwitchEvent

Twitch EventSub: channel.ad_break.begin

Constructors

Link copied to clipboard
constructor(subscriptionType: String, messageId: String, timestamp: Instant, durationSeconds: Int, startedAt: Instant, isAutomatic: Boolean, broadcasterUserId: String, broadcasterUserLogin: String, broadcasterUserName: String, requesterUserId: String, requesterUserLogin: String, requesterUserName: String)

Properties

Link copied to clipboard

the broadcaster's user ID for the channel the ad was run on.

Link copied to clipboard

the broadcaster's login for the channel the ad was run on.

Link copied to clipboard

the broadcaster's display name for the channel the ad was run on.

Link copied to clipboard

length in seconds of the mid-roll ad break requested.

Link copied to clipboard

whether the ad was automatically scheduled via Ads Manager.

Link copied to clipboard
open override val messageId: String

Unique ID for this EventSub message.

Link copied to clipboard

the ID of the user that requested the ad. For automatic ads, this is the broadcaster's ID.

Link copied to clipboard

the login of the user that requested the ad.

Link copied to clipboard

the display name of the user that requested the ad.

Link copied to clipboard

the UTC timestamp (RFC3339) of when the ad break began.

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.