@twurple/eventsub-base
Version:
Base for the other Twurple EventSub packages
20 lines (19 loc) • 905 B
JavaScript
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 a channel's chat.
*/
let EventSubChannelChatAnnouncementNotificationEvent = class EventSubChannelChatAnnouncementNotificationEvent extends EventSubChannelChatBaseNotificationEvent {
type = 'announcement';
/**
* The color of the announcement.
*/
get announcementColor() {
return this[rawDataSymbol].announcement.color;
}
};
EventSubChannelChatAnnouncementNotificationEvent = __decorate([
rtfm('eventsub-base', 'EventSubChannelChatAnnouncementNotificationEvent', 'broadcasterId')
], EventSubChannelChatAnnouncementNotificationEvent);
export { EventSubChannelChatAnnouncementNotificationEvent };