UNPKG

@twurple/eventsub-base

Version:

Base for the other Twurple EventSub packages

21 lines (20 loc) 1.01 kB
import { __decorate } from "tslib"; import { rawDataSymbol, rtfm } from '@twurple/common'; import { EventSubChannelChatBaseNotificationEvent } from './EventSubChannelChatBaseNotificationEvent.js'; /** * An EventSub event representing a notification for an announcement in another channel's chat during a shared chat * session. */ let EventSubChannelChatSharedChatAnnouncementNotificationEvent = class EventSubChannelChatSharedChatAnnouncementNotificationEvent extends EventSubChannelChatBaseNotificationEvent { type = 'shared_chat_announcement'; /** * The color of the announcement. */ get color() { return this[rawDataSymbol].shared_chat_announcement.color; } }; EventSubChannelChatSharedChatAnnouncementNotificationEvent = __decorate([ rtfm('eventsub-base', 'EventSubChannelChatSharedChatAnnouncementNotificationEvent', 'broadcasterId') ], EventSubChannelChatSharedChatAnnouncementNotificationEvent); export { EventSubChannelChatSharedChatAnnouncementNotificationEvent };