Skip to main content

Class: Comment

Represents a Comment / Reply

Hierarchy​

Implements​

  • CommentProperties

Properties​

author​

• author: BaseChannel

The comment's author

Implementation of​

CommentProperties.author


client​

• client: Client

An instance of Client

Implementation of​

CommentProperties.client

Inherited from​

Base.client


content​

• content: string

The content of this comment

Implementation of​

CommentProperties.content


id​

• id: string

Implementation of​

CommentProperties.id


isAuthorChannelOwner​

• isAuthorChannelOwner: boolean

Whether the comment is posted by the video uploader / owner

Implementation of​

CommentProperties.isAuthorChannelOwner


isPinned​

• isPinned: boolean

Whether the comment is pinned

Implementation of​

CommentProperties.isPinned


likeCount​

• likeCount: number

How many likes does this comment have

Implementation of​

CommentProperties.likeCount


publishDate​

• publishDate: string

The publish date of the comment

Implementation of​

CommentProperties.publishDate


replies​

• replies: CommentReplies

Continuable of replies in this comment

Implementation of​

CommentProperties.replies


replyCount​

• replyCount: number

Reply count of this comment

Implementation of​

CommentProperties.replyCount


video​

• video: Video

The video this comment belongs to

Implementation of​

CommentProperties.video

Accessors​

url​

• get url(): string

URL to the video with this comment being highlighted (appears on top of the comment section)

Returns​

string