UNPKG

@twurple/eventsub-base

Version:

Base for the other Twurple EventSub packages

26 lines (25 loc) 1.27 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EventSubChannelChatAnnouncementNotificationEvent = 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 a channel's chat. */ let EventSubChannelChatAnnouncementNotificationEvent = class EventSubChannelChatAnnouncementNotificationEvent extends EventSubChannelChatBaseNotificationEvent_1.EventSubChannelChatBaseNotificationEvent { constructor() { super(...arguments); this.type = 'announcement'; } /** * The color of the announcement. */ get color() { return this[common_1.rawDataSymbol].announcement.color; } }; exports.EventSubChannelChatAnnouncementNotificationEvent = EventSubChannelChatAnnouncementNotificationEvent; exports.EventSubChannelChatAnnouncementNotificationEvent = EventSubChannelChatAnnouncementNotificationEvent = tslib_1.__decorate([ (0, common_1.rtfm)('eventsub-base', 'EventSubChannelChatAnnouncementNotificationEvent', 'broadcasterId') ], EventSubChannelChatAnnouncementNotificationEvent);