mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +00:00
* tests: improve coverage * refactor: clean up nodes * chore: lint * feat(parser): ignore `BrandVideoShelf` Seems to be used for ads. * feat(parser): ignore `BrandVideoSingleton` too
21 lines
471 B
TypeScript
21 lines
471 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import type { RawNode } from '../index.js';
|
|
|
|
export default class EmojiPickerCategoryButton extends YTNode {
|
|
static type = 'EmojiPickerCategoryButton';
|
|
|
|
category_id: string;
|
|
icon_type?: string;
|
|
tooltip: string;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.category_id = data.categoryId;
|
|
|
|
if (Reflect.has(data, 'icon')) {
|
|
this.icon_type = data.icon?.iconType;
|
|
}
|
|
|
|
this.tooltip = data.tooltip;
|
|
}
|
|
} |