feat(parser): Add ChannelOwnerEmptyState (#541)

This commit is contained in:
absidue
2023-12-01 02:12:11 +01:00
committed by GitHub
parent c66eb1fecf
commit b60930a0c1
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import { YTNode } from '../helpers.js';
import type { RawNode } from '../index.js';
import Text from './misc/Text.js';
import Thumbnail from './misc/Thumbnail.js';
export default class ChannelOwnerEmptyState extends YTNode {
static type = 'ChannelOwnerEmptyState';
illustration: Thumbnail[];
description: Text;
constructor(data: RawNode) {
super();
this.illustration = Thumbnail.fromResponse(data.illustration);
this.description = new Text(data.description);
}
}