ChannelChatNotification

data class ChannelChatNotification(val subscriptionType: String, val messageId: String, val timestamp: Instant, val broadcasterUserId: String, val broadcasterUserLogin: String, val broadcasterUserName: String, val chatterUserId: String, val chatterUserLogin: String, val chatterUserName: String, val noticeType: String, val message: ChatMessage, val sub: SubNotification?, val resub: ResubNotification?, val subGift: SubGiftNotification?, val communitySubGift: CommunitySubGiftNotification?, val giftPaidUpgrade: GiftPaidUpgradeNotification?, val primePaidUpgrade: PrimePaidUpgradeNotification?, val payItForward: PayItForwardNotification?, val raid: RaidNotification?, val unraid: JsonObject?, val announcement: AnnouncementNotification?, val bitsBadgeTier: BitsBadgeTierNotification?, val charityDonation: CharityDonationNotification?) : TwitchEvent

Twitch EventSub: channel.chat.notification

Constructors

Link copied to clipboard
constructor(subscriptionType: String, messageId: String, timestamp: Instant, broadcasterUserId: String, broadcasterUserLogin: String, broadcasterUserName: String, chatterUserId: String, chatterUserLogin: String, chatterUserName: String, noticeType: String, message: ChatMessage, sub: SubNotification?, resub: ResubNotification?, subGift: SubGiftNotification?, communitySubGift: CommunitySubGiftNotification?, giftPaidUpgrade: GiftPaidUpgradeNotification?, primePaidUpgrade: PrimePaidUpgradeNotification?, payItForward: PayItForwardNotification?, raid: RaidNotification?, unraid: JsonObject?, announcement: AnnouncementNotification?, bitsBadgeTier: BitsBadgeTierNotification?, charityDonation: CharityDonationNotification?)

Properties

Link copied to clipboard

information about the announcement event. Null if noticeType is not announcement.

Link copied to clipboard

information about the Bits badge tier event. Null if noticeType is not bits_badge_tier.

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

information about the charity donation event. Null if noticeType is not charity_donation.

Link copied to clipboard

the user ID of the user in the notification.

Link copied to clipboard

the user login of the user in the notification.

Link copied to clipboard

the user display name of the user in the notification.

Link copied to clipboard

information about the community gift sub event. Null if noticeType is not community_sub_gift.

Link copied to clipboard

information about the gift paid upgrade event. Null if noticeType is not gift_paid_upgrade.

Link copied to clipboard

the notification message text and fragments.

Link copied to clipboard
open override val messageId: String

Unique ID for this EventSub message.

Link copied to clipboard

the type of notice: sub, resub, sub_gift, community_sub_gift, raid, announcement, etc.

Link copied to clipboard

information about the pay-it-forward event. Null if noticeType is not pay_it_forward.

Link copied to clipboard

information about the Prime paid upgrade event. Null if noticeType is not prime_paid_upgrade.

Link copied to clipboard

information about the raid event. Null if noticeType is not raid.

Link copied to clipboard

information about the resub event. Null if noticeType is not resub.

Link copied to clipboard

information about the sub event. Null if noticeType is not sub.

Link copied to clipboard

information about the gift sub event. Null if noticeType is not sub_gift.

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
val unraid: JsonObject?

information about the unraid event. Null if noticeType is not unraid.