UNPKG

@twurple/eventsub-base

Version:

Base for the other Twurple EventSub packages

23 lines (22 loc) 1.01 kB
import { __decorate } from "tslib"; import { rawDataSymbol, rtfm } from '@twurple/common'; import { EventSubChannelChatBaseNotificationEvent } from "./EventSubChannelChatBaseNotificationEvent.mjs"; /** * 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 { constructor() { super(...arguments); this.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 };