@sushibtw/youtubei
Version:
Simple package to get information from youtube such as videos, playlists, channels, video information & comments, related videos, up next video, and more!
30 lines (29 loc) • 833 B
TypeScript
import { Base, Channel, Video, BaseAttributes } from ".";
import { YoutubeRawData } from "../common";
/** @hidden */
interface ChatAttributes extends BaseAttributes {
video: Video;
author: Channel;
message: string;
timestamp: number;
}
/** Represents a chat in a live stream */
export default class Chat extends Base implements ChatAttributes {
/** The video this chat belongs to */
video: Video;
/** The chat's author */
author: Channel;
/** The message of this chat */
message: string;
/** Timestamp in usec / microsecond */
timestamp: number;
/** @hidden */
constructor(chat?: Partial<ChatAttributes>);
/**
* Load this instance with raw data from Youtube
*
* @hidden
*/
load(data: YoutubeRawData): Chat;
}
export {};