UNPKG

@twurple/eventsub-base

Version:

Base for the other Twurple EventSub packages

30 lines (29 loc) 862 B
import { __decorate } from "tslib"; import { DataObject, rawDataSymbol, rtfm } from '@twurple/common'; /** * An object that contains the reward information. */ let EventSubChannelAutomaticReward = class EventSubChannelAutomaticReward extends DataObject { /** * The type of reward. */ get type() { return this[rawDataSymbol].type; } /** * Number of channel points used. */ get channelPoints() { return this[rawDataSymbol].channel_points; } /** * Emote associated with the reward, or `null` if the reward is not related to emotes. */ get emote() { return this[rawDataSymbol].emote; } }; EventSubChannelAutomaticReward = __decorate([ rtfm('eventsub-base', 'EventSubChannelAutomaticReward') ], EventSubChannelAutomaticReward); export { EventSubChannelAutomaticReward };