UNPKG

@twurple/eventsub-base

Version:

Base for the other Twurple EventSub packages

33 lines (32 loc) 1.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EventSubChannelBitsUsePowerUp = void 0; const tslib_1 = require("tslib"); const common_1 = require("@twurple/common"); /** * Represents a bits usage Power-up. */ let EventSubChannelBitsUsePowerUp = class EventSubChannelBitsUsePowerUp extends common_1.DataObject { /** * The type of the Power-up. */ get type() { return this[common_1.rawDataSymbol].type; } /** * Emote associated with the reward. */ get emote() { return this[common_1.rawDataSymbol].emote; } /** * The ID of the message effect. */ get messageEffectId() { return this[common_1.rawDataSymbol].message_effect_id; } }; exports.EventSubChannelBitsUsePowerUp = EventSubChannelBitsUsePowerUp; exports.EventSubChannelBitsUsePowerUp = EventSubChannelBitsUsePowerUp = tslib_1.__decorate([ (0, common_1.rtfm)('eventsub-base', 'EventSubChannelBitsUsePowerUp') ], EventSubChannelBitsUsePowerUp);