@twurple/eventsub-base
Version:
Base for the other Twurple EventSub packages
24 lines (23 loc) • 1.45 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EventSubChannelChatSharedChatPrimePaidUpgradeNotificationEvent = 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 another channel's
* chat during a shared chat session.
*/
let EventSubChannelChatSharedChatPrimePaidUpgradeNotificationEvent = class EventSubChannelChatSharedChatPrimePaidUpgradeNotificationEvent extends EventSubChannelChatBaseNotificationEvent_1.EventSubChannelChatBaseNotificationEvent {
constructor() {
super(...arguments);
this.type = 'shared_chat_prime_paid_upgrade';
}
get tier() {
return this[common_1.rawDataSymbol].shared_chat_prime_paid_upgrade.sub_tier;
}
};
exports.EventSubChannelChatSharedChatPrimePaidUpgradeNotificationEvent = EventSubChannelChatSharedChatPrimePaidUpgradeNotificationEvent;
exports.EventSubChannelChatSharedChatPrimePaidUpgradeNotificationEvent = EventSubChannelChatSharedChatPrimePaidUpgradeNotificationEvent = tslib_1.__decorate([
(0, common_1.rtfm)('eventsub-base', 'EventSubChannelChatSharedChatPrimePaidUpgradeNotificationEvent', 'broadcasterId')
], EventSubChannelChatSharedChatPrimePaidUpgradeNotificationEvent);