Files
YouTube.js/examples/comments/CommentView.md
2024-04-11 18:03:04 -03:00

1.1 KiB

CommentView

Contains information about a single comment. A CommentView can be a top-level comment or a reply to a top-level comment.

API

like()

Likes the comment.

Returns: Promise.<ApiResponse>

unlike()

Unlikes the comment.

Returns: Promise.<ApiResponse>

dislike()

Dislikes the comment.

Returns: Promise.<ApiResponse>

undislike()

Undislikes the comment.

Returns: Promise.<ApiResponse>

reply(comment_text: string)

Replies to the comment.

Returns: Promise.<ApiResponse>

translate(target_language: string)

Translates the comment to the given language.

Returns: Promise.<ApiResponse & { content?: string }>