UNPKG

@twurple/eventsub-base

Version:

Base for the other Twurple EventSub packages

26 lines (25 loc) 1.32 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EventSubChannelChatBitsBadgeTierNotificationEvent = 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 a new bits badge tier being reached in a channel's chat. */ let EventSubChannelChatBitsBadgeTierNotificationEvent = class EventSubChannelChatBitsBadgeTierNotificationEvent extends EventSubChannelChatBaseNotificationEvent_1.EventSubChannelChatBaseNotificationEvent { constructor() { super(...arguments); this.type = 'bits_badge_tier'; } /** * The new bits badge tier that was just reached. */ get newTier() { return this[common_1.rawDataSymbol].bits_badge_tier.tier; } }; exports.EventSubChannelChatBitsBadgeTierNotificationEvent = EventSubChannelChatBitsBadgeTierNotificationEvent; exports.EventSubChannelChatBitsBadgeTierNotificationEvent = EventSubChannelChatBitsBadgeTierNotificationEvent = tslib_1.__decorate([ (0, common_1.rtfm)('eventsub-base', 'EventSubChannelChatBitsBadgeTierNotificationEvent', 'broadcasterId') ], EventSubChannelChatBitsBadgeTierNotificationEvent);