UNPKG

@twurple/eventsub-base

Version:

Base for the other Twurple EventSub packages

20 lines (19 loc) 973 B
import { __decorate } from "tslib"; import { rawDataSymbol, rtfm } from '@twurple/common'; import { EventSubChannelChatBaseNotificationEvent } from "./EventSubChannelChatBaseNotificationEvent.mjs"; /** * 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 { constructor() { super(...arguments); this.type = 'prime_paid_upgrade'; } get tier() { return this[rawDataSymbol].prime_paid_upgrade.sub_tier; } }; EventSubChannelChatPrimePaidUpgradeNotificationEvent = __decorate([ rtfm('eventsub-base', 'EventSubChannelChatPrimePaidUpgradeNotificationEvent', 'broadcasterId') ], EventSubChannelChatPrimePaidUpgradeNotificationEvent); export { EventSubChannelChatPrimePaidUpgradeNotificationEvent };