feat(Channel): Support PageHeader being used on user channels (#577)

This commit is contained in:
absidue
2024-01-13 01:52:02 +01:00
committed by GitHub
parent 3980f97b8f
commit 6082b4a52e
7 changed files with 82 additions and 2 deletions

View File

@@ -1,13 +1,16 @@
import { YTNode } from '../helpers.js';
import type { RawNode } from '../index.js';
import Text from './misc/Text.js';
export default class DynamicTextView extends YTNode {
static type = 'DynamicTextView';
text: string;
text: Text;
max_lines: number;
constructor(data: RawNode) {
super();
this.text = data.text.content;
this.text = Text.fromAttributed(data.text);
this.max_lines = parseInt(data.maxLines);
}
}