UNPKG

@duell10111/youtubei.js

Version:

A JavaScript client for YouTube's private API, known as InnerTube.

25 lines 739 B
import { YTNode } from '../../helpers.js'; export default class AuthorCommentBadge extends YTNode { static type = 'AuthorCommentBadge'; #data; icon_type; tooltip; style; constructor(data) { super(); if (Reflect.has(data, 'icon') && Reflect.has(data.icon, 'iconType')) { this.icon_type = data.icon.iconType; } this.tooltip = data.iconTooltip; // *** For consistency if (this.tooltip === 'Verified') { this.style = 'BADGE_STYLE_TYPE_VERIFIED'; data.style = 'BADGE_STYLE_TYPE_VERIFIED'; } this.#data = data; } get orig_badge() { return this.#data; } } //# sourceMappingURL=AuthorCommentBadge.js.map