mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-13 01:22:11 +00:00
1.1 KiB
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
- Comment
- .like ⇒
function - .unlike ⇒
function - .dislike ⇒
function - .undislike ⇒
function - .reply ⇒
function - .translate ⇒
function
- .like ⇒
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 }>