ChannelPointsCustomRewardAdd

data class ChannelPointsCustomRewardAdd(val subscriptionType: String, val messageId: String, val timestamp: Instant, val id: String, val broadcasterUserId: String, val broadcasterUserLogin: String, val broadcasterUserName: String, val isEnabled: Boolean, val isPaused: Boolean, val isInStock: Boolean, val title: String, val cost: Int, val prompt: String, val isUserInputRequired: Boolean, val shouldRedemptionsSkipRequestQueue: Boolean, val maxPerStream: MaxPerStreamSetting, val maxPerUserPerStream: MaxPerStreamSetting, val backgroundColor: String, val image: RewardImage?, val defaultImage: RewardImage, val globalCooldown: GlobalCooldownSetting, val cooldownExpiresAt: Instant?, val redemptionsRedeemedCurrentStream: Int?) : TwitchEvent

Twitch EventSub: channel.channel_points_custom_reward.add

Constructors

Link copied to clipboard
constructor(subscriptionType: String, messageId: String, timestamp: Instant, id: String, broadcasterUserId: String, broadcasterUserLogin: String, broadcasterUserName: String, isEnabled: Boolean, isPaused: Boolean, isInStock: Boolean, title: String, cost: Int, prompt: String, isUserInputRequired: Boolean, shouldRedemptionsSkipRequestQueue: Boolean, maxPerStream: MaxPerStreamSetting, maxPerUserPerStream: MaxPerStreamSetting, backgroundColor: String, image: RewardImage?, defaultImage: RewardImage, globalCooldown: GlobalCooldownSetting, cooldownExpiresAt: Instant?, redemptionsRedeemedCurrentStream: Int?)

Properties

Link copied to clipboard

the reward background color.

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

RFC3339 timestamp of when the cooldown expires; null if not on cooldown.

Link copied to clipboard
val cost: Int

the reward cost in channel points.

Link copied to clipboard

the default image URLs.

Link copied to clipboard

global cooldown settings.

Link copied to clipboard
val id: String

the reward ID.

Link copied to clipboard

the reward image URLs.

Link copied to clipboard

whether the reward is enabled.

Link copied to clipboard

whether the reward is in stock.

Link copied to clipboard

whether the reward is paused.

Link copied to clipboard

whether user input is required.

Link copied to clipboard

max per stream settings.

Link copied to clipboard

max per user per stream settings.

Link copied to clipboard
open override val messageId: String

Unique ID for this EventSub message.

Link copied to clipboard

the reward prompt.

Link copied to clipboard

number of redemptions in the current stream; null if not live.

Link copied to clipboard

whether redemptions skip the request queue.

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 reward title.