@twurple/eventsub-base
Version:
Base for the other Twurple EventSub packages
23 lines (22 loc) • 1.3 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EventSubChannelChatPrimePaidUpgradeNotificationEvent = void 0;
const tslib_1 = require("tslib");
const common_1 = require("@twurple/common");
const EventSubChannelChatBaseNotificationEvent_1 = require("./EventSubChannelChatBaseNotificationEvent");
/**
* An EventSub event representing a notification of a user upgrading their gifted sub to a paid one in a channel's chat.
*/
let EventSubChannelChatPrimePaidUpgradeNotificationEvent = class EventSubChannelChatPrimePaidUpgradeNotificationEvent extends EventSubChannelChatBaseNotificationEvent_1.EventSubChannelChatBaseNotificationEvent {
constructor() {
super(...arguments);
this.type = 'prime_paid_upgrade';
}
get tier() {
return this[common_1.rawDataSymbol].prime_paid_upgrade.sub_tier;
}
};
exports.EventSubChannelChatPrimePaidUpgradeNotificationEvent = EventSubChannelChatPrimePaidUpgradeNotificationEvent;
exports.EventSubChannelChatPrimePaidUpgradeNotificationEvent = EventSubChannelChatPrimePaidUpgradeNotificationEvent = tslib_1.__decorate([
(0, common_1.rtfm)('eventsub-base', 'EventSubChannelChatPrimePaidUpgradeNotificationEvent', 'broadcasterId')
], EventSubChannelChatPrimePaidUpgradeNotificationEvent);