@twurple/eventsub-base
Version:
Base for the other Twurple EventSub packages
17 lines (16 loc) • 908 B
JavaScript
import { __decorate } from "tslib";
import { rawDataSymbol, rtfm } from '@twurple/common';
import { EventSubChannelChatBaseNotificationEvent } from './EventSubChannelChatBaseNotificationEvent.js';
/**
* 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 {
type = 'prime_paid_upgrade';
get tier() {
return this[rawDataSymbol].prime_paid_upgrade.sub_tier;
}
};
EventSubChannelChatPrimePaidUpgradeNotificationEvent = __decorate([
rtfm('eventsub-base', 'EventSubChannelChatPrimePaidUpgradeNotificationEvent', 'broadcasterId')
], EventSubChannelChatPrimePaidUpgradeNotificationEvent);
export { EventSubChannelChatPrimePaidUpgradeNotificationEvent };