@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!
39 lines (38 loc) • 1.18 kB
TypeScript
import { Base, Channel, Video, BaseAttributes, Comment } from ".";
import { YoutubeRawData } from "../common";
/** @hidden */
interface ReplyAttributes extends BaseAttributes {
comment: Comment;
video: Video;
author: Channel;
content: string;
publishDate: string;
likeCount: number;
isAuthorChannelOwner: boolean;
}
/** Represents a Reply */
export default class Reply extends Base implements ReplyAttributes {
/** The comment this reply belongs to */
comment: Comment;
/** The video this reply belongs to */
video: Video;
/** The comment's author */
author: Channel;
/** The content of this comment */
content: string;
/** The publish date of the comment */
publishDate: string;
/** How many likes does this comment have */
likeCount: number;
/** Whether the comment is posted by the video uploader / owner */
isAuthorChannelOwner: boolean;
/** @hidden */
constructor(reply?: Partial<ReplyAttributes>);
/**
* Load this instance with raw data from Youtube
*
* @hidden
*/
load(data: YoutubeRawData): Reply;
}
export {};