UNPKG

@twurple/eventsub-base

Version:

Base for the other Twurple EventSub packages

23 lines (22 loc) 958 B
import { __decorate } from "tslib"; import { rawDataSymbol, rtfm } from '@twurple/common'; import { EventSubChannelChatBaseNotificationEvent } from "./EventSubChannelChatBaseNotificationEvent.mjs"; /** * An EventSub event representing a notification for an announcement in a channel's chat. */ let EventSubChannelChatAnnouncementNotificationEvent = class EventSubChannelChatAnnouncementNotificationEvent extends EventSubChannelChatBaseNotificationEvent { constructor() { super(...arguments); this.type = 'announcement'; } /** * The color of the announcement. */ get color() { return this[rawDataSymbol].announcement.color; } }; EventSubChannelChatAnnouncementNotificationEvent = __decorate([ rtfm('eventsub-base', 'EventSubChannelChatAnnouncementNotificationEvent', 'broadcasterId') ], EventSubChannelChatAnnouncementNotificationEvent); export { EventSubChannelChatAnnouncementNotificationEvent };