UNPKG

@twurple/eventsub-base

Version:

Base for the other Twurple EventSub packages

30 lines (29 loc) 802 B
import { __decorate } from "tslib"; import { DataObject, rawDataSymbol, rtfm } from '@twurple/common'; /** * Represents a bits usage Power-up. */ let EventSubChannelBitsUsePowerUp = class EventSubChannelBitsUsePowerUp extends DataObject { /** * The type of the Power-up. */ get type() { return this[rawDataSymbol].type; } /** * Emote associated with the reward. */ get emote() { return this[rawDataSymbol].emote; } /** * The ID of the message effect. */ get messageEffectId() { return this[rawDataSymbol].message_effect_id; } }; EventSubChannelBitsUsePowerUp = __decorate([ rtfm('eventsub-base', 'EventSubChannelBitsUsePowerUp') ], EventSubChannelBitsUsePowerUp); export { EventSubChannelBitsUsePowerUp };