Files
YouTube.js/examples/comments/CommentThread.md
LuanRT dca61c3a22 feat: finalize comment section nodes (#280)
* fix: comment translation proto missing channel id

* feat: finalize nodes

* docs: update API ref

* chore: update tests
2023-01-09 08:14:31 -03:00

1.6 KiB

CommentThread

A CommentThread represents a top-level comment and its replies.

API

comment

The top-level comment. Note: More about Comment here.

Type: Comment

replies

An array of replies to the top-level comment. (not populated until getReplies() is called).

Type: Comment[]

getReplies()

Retrieves replies to the top-level comment and attaches a replies array to the original CommentThread object and returns it.

Returns: Promise.<CommentThread>

getContinuation()

Retrieves next batch of replies and adds them to the replies array. Note: getReplies() must be called before using this.

Returns: Promise.<CommentThread>

has_continuation

Whether there are more replies to be retrieved.

Type: boolean

has_replies

Whether there are replies to the top-level comment.

Type: boolean