@twurple/eventsub-base
Version:
Base for the other Twurple EventSub packages
18 lines (17 loc) • 1.03 kB
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 another channel's
* chat during a shared chat session.
*/
let EventSubChannelChatSharedChatPrimePaidUpgradeNotificationEvent = class EventSubChannelChatSharedChatPrimePaidUpgradeNotificationEvent extends EventSubChannelChatBaseNotificationEvent {
type = 'shared_chat_prime_paid_upgrade';
get tier() {
return this[rawDataSymbol].shared_chat_prime_paid_upgrade.sub_tier;
}
};
EventSubChannelChatSharedChatPrimePaidUpgradeNotificationEvent = __decorate([
rtfm('eventsub-base', 'EventSubChannelChatSharedChatPrimePaidUpgradeNotificationEvent', 'broadcasterId')
], EventSubChannelChatSharedChatPrimePaidUpgradeNotificationEvent);
export { EventSubChannelChatSharedChatPrimePaidUpgradeNotificationEvent };