@twurple/eventsub-base
Version:
Base for the other Twurple EventSub packages
33 lines (32 loc) • 1.09 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EventSubChannelAutomaticReward = void 0;
const tslib_1 = require("tslib");
const common_1 = require("@twurple/common");
/**
* An object that contains the reward information.
*/
let EventSubChannelAutomaticReward = class EventSubChannelAutomaticReward extends common_1.DataObject {
/**
* The type of reward.
*/
get type() {
return this[common_1.rawDataSymbol].type;
}
/**
* Number of channel points used.
*/
get channelPoints() {
return this[common_1.rawDataSymbol].channel_points;
}
/**
* Emote associated with the reward, or `null` if the reward is not related to emotes.
*/
get emote() {
return this[common_1.rawDataSymbol].emote;
}
};
exports.EventSubChannelAutomaticReward = EventSubChannelAutomaticReward;
exports.EventSubChannelAutomaticReward = EventSubChannelAutomaticReward = tslib_1.__decorate([
(0, common_1.rtfm)('eventsub-base', 'EventSubChannelAutomaticReward')
], EventSubChannelAutomaticReward);