UNPKG

@twurple/eventsub-base

Version:

Base for the other Twurple EventSub packages

21 lines (20 loc) 1.09 kB
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 another channel's * chat during a shared chat session. */ let EventSubChannelChatSharedChatPrimePaidUpgradeNotificationEvent = class EventSubChannelChatSharedChatPrimePaidUpgradeNotificationEvent extends EventSubChannelChatBaseNotificationEvent { constructor() { super(...arguments); this.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 };