UNPKG

@twurple/eventsub-base

Version:

Base for the other Twurple EventSub packages

20 lines (19 loc) 942 B
import { __decorate } from "tslib"; import { rawDataSymbol, rtfm } from '@twurple/common'; import { EventSubChannelChatBaseNotificationEvent } from './EventSubChannelChatBaseNotificationEvent.js'; /** * An EventSub event representing a notification for a new bits badge tier being reached in a channel's chat. */ let EventSubChannelChatBitsBadgeTierNotificationEvent = class EventSubChannelChatBitsBadgeTierNotificationEvent extends EventSubChannelChatBaseNotificationEvent { type = 'bits_badge_tier'; /** * The new bits badge tier that was just reached. */ get newTier() { return this[rawDataSymbol].bits_badge_tier.tier; } }; EventSubChannelChatBitsBadgeTierNotificationEvent = __decorate([ rtfm('eventsub-base', 'EventSubChannelChatBitsBadgeTierNotificationEvent', 'broadcasterId') ], EventSubChannelChatBitsBadgeTierNotificationEvent); export { EventSubChannelChatBitsBadgeTierNotificationEvent };