UNPKG

@twurple/eventsub-base

Version:

Base for the other Twurple EventSub packages

27 lines (26 loc) 1.42 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EventSubChannelChatSharedChatAnnouncementNotificationEvent = void 0; const tslib_1 = require("tslib"); const common_1 = require("@twurple/common"); const EventSubChannelChatBaseNotificationEvent_1 = require("./EventSubChannelChatBaseNotificationEvent"); /** * 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_1.EventSubChannelChatBaseNotificationEvent { constructor() { super(...arguments); this.type = 'shared_chat_announcement'; } /** * The color of the announcement. */ get color() { return this[common_1.rawDataSymbol].shared_chat_announcement.color; } }; exports.EventSubChannelChatSharedChatAnnouncementNotificationEvent = EventSubChannelChatSharedChatAnnouncementNotificationEvent; exports.EventSubChannelChatSharedChatAnnouncementNotificationEvent = EventSubChannelChatSharedChatAnnouncementNotificationEvent = tslib_1.__decorate([ (0, common_1.rtfm)('eventsub-base', 'EventSubChannelChatSharedChatAnnouncementNotificationEvent', 'broadcasterId') ], EventSubChannelChatSharedChatAnnouncementNotificationEvent);