mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 19:12:24 +00:00
19 lines
568 B
TypeScript
19 lines
568 B
TypeScript
import { YTNode, type ObservedArray } from '../helpers.js';
|
|
import { Parser, type RawNode } from '../index.js';
|
|
import Text from './misc/Text.js';
|
|
import Thumbnail from './misc/Thumbnail.js';
|
|
|
|
export default class LiveChatParticipant extends YTNode {
|
|
static type = 'LiveChatParticipant';
|
|
|
|
name: Text;
|
|
photo: Thumbnail[];
|
|
badges: ObservedArray<YTNode>;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.name = new Text(data.authorName);
|
|
this.photo = Thumbnail.fromResponse(data.authorPhoto);
|
|
this.badges = Parser.parseArray(data.authorBadges);
|
|
}
|
|
} |