mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-13 09:32:12 +00:00
* fix: comment translation proto missing channel id * feat: finalize nodes * docs: update API ref * chore: update tests
1.6 KiB
1.6 KiB
CommentThread
A CommentThread represents a top-level comment and its replies.
API
- CommentThread
- .comment ⇒
Comment - .replies ⇒
Comment[] - .getReplies ⇒
function - .getContinuation ⇒
function - .has_continuation ⇒
boolean - .has_replies ⇒
boolean
- .comment ⇒
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