UNPKG

@imput/youtubei.js

Version:

A JavaScript client for YouTube's private API, known as InnerTube. Fork of youtubei.js

16 lines 664 B
import { YTNode } from '../../../helpers.js'; import Author from '../../misc/Author.js'; import Text from '../../misc/Text.js'; class LiveChatTickerSponsorItem extends YTNode { constructor(data) { super(); this.id = data.id; this.detail = new Text(data.detailText); this.author = new Author(data.authorName, data.authorBadges, data.sponsorPhoto, data.authorExternalChannelId); this.duration_sec = data.durationSec; // TODO: Parse remaining props. } } LiveChatTickerSponsorItem.type = 'LiveChatTickerSponsorItem'; export default LiveChatTickerSponsorItem; //# sourceMappingURL=LiveChatTickerSponsorItem.js.map