Skip to main content
Module

x/youtubei/deno.ts>YTNodes.CommentView

A wrapper around YouTube's internal API — reverse engineering InnerTube
Very Popular
Go to Latest
class YTNodes.CommentView
extends YTNode
import { YTNodes } from "https://deno.land/x/youtubei@v9.3.0-deno/deno.ts";
const { CommentView } = YTNodes;

Constructors

new
CommentView(data: RawNode)

Properties

optional
author: Author
optional
author_is_channel_owner: boolean
comment_id: string
optional
content: Text
optional
dislike_command: NavigationEndpoint
optional
is_disliked: boolean
optional
is_hearted: boolean
optional
is_liked: boolean
optional
is_member: boolean
is_pinned: boolean
keys: { comment: string; comment_surface: string; toolbar_state: string; toolbar_surface: string; shared: string; }
optional
like_command: NavigationEndpoint
optional
like_count: string
optional
member_badge: { url: string; a11y: string; }
optional
published_time: string
optional
reply_command: NavigationEndpoint
optional
reply_count: string
test: any
optional
undislike_command: NavigationEndpoint
optional
unlike_command: NavigationEndpoint

Methods

applyMutations(
comment?: RawNode,
toolbar_state?: RawNode,
toolbar_surface?: RawNode,
)
dislike(): Promise<ApiResponse>

Dislikes the comment.

like(): Promise<ApiResponse>

Likes the comment.

reply(comment_text: string): Promise<ApiResponse>

Replies to the comment.

setActions(actions: Actions | undefined)
translate(target_language: string): Promise<ApiResponse & { content?: string; }>

Translates the comment to the specified target language.

Undislikes the comment.

unlike(): Promise<ApiResponse>

Unlikes the comment.

Static Properties

type: string