Constructors
constructor
Parameters
videoId: string
channelId: string
Properties
channelId
channelId: string
Optional channelName
channelName?: string
Optional isLive
isLive?: boolean
Optional title
title?: string
Accessors
metadata
- get metadata(): { channelId: string; channelName: undefined | string; isLive: undefined | boolean; title: undefined | string; videoId: string }
Returns { channelId: string; channelName: undefined | string; isLive: undefined | boolean; title: undefined | string; videoId: string }
channelId: string
channelName: undefined | string
isLive: undefined | boolean
title: undefined | string
videoId: string
Methods
addListener
Type Parameters
Parameters
addModerator
- addModerator(channelId: string): Promise<YTActionResponse>
Parameters
Returns Promise<YTActionResponse>
block
- block(contextMenuEndpointParams: string): Promise<undefined | YTAction[]>
Parameters
contextMenuEndpointParams: string
Returns Promise<undefined | YTAction[]>
emit
- emit<U>(event: U, ...args: Parameters<Events[U]>): boolean
Type Parameters
Parameters
event: U
Rest ...args: Parameters<Events[U]>
Returns boolean
fetchMetadataFromEmbed
- fetchMetadataFromEmbed(id: string): Promise<undefined | { channelId: any; channelName: string; channelThumbnail: any; duration: number; status: any; statusText: any; thumbnail: any; title: string }>
Parameters
Returns Promise<undefined | { channelId: any; channelName: string; channelThumbnail: any; duration: number; status: any; statusText: any; thumbnail: any; title: string }>
fetchMetadataFromWatch
- fetchMetadataFromWatch(id: string): Promise<{ channelId: string; channelName: string; isLive: boolean; title: string }>
Parameters
Returns Promise<{ channelId: string; channelName: string; isLive: boolean; title: string }>
getComments
- getComments(continuation?: string | CscOptions): Promise<{ comments: YTCommentThreadRenderer[]; continuation: undefined | string; next: undefined | (() => Promise<({ comments: YTCommentThreadRenderer[]; continuation: string | undefined; next: (() => Promise<...>) | undefined; })>) }>
Parameters
Returns Promise<{ comments: YTCommentThreadRenderer[]; continuation: undefined | string; next: undefined | (() => Promise<({ comments: YTCommentThreadRenderer[]; continuation: string | undefined; next: (() => Promise<...>) | undefined; })>) }>
getPlaylist
- getPlaylist(browseId: string | { type: "membersOnly" }): Promise<{ description: any; title: any; videos: any }>
Parameters
browseId: string | { type: "membersOnly" }
Returns Promise<{ description: any; title: any; videos: any }>
hide
- hide(targetChannelId: string): Promise<void>
Parameters
Returns Promise<void>
iter
Parameters
Returns AsyncIterator<Action, any, undefined>
iterate
Parameters
Returns AsyncGenerator<ChatResponse, any, unknown>
off
Type Parameters
Parameters
on
Type Parameters
Parameters
once
Type Parameters
Parameters
pin
- pin(chatId: string): Promise<YTActionResponse>
Parameters
Returns Promise<YTActionResponse>
populateMetadata
- populateMetadata(): Promise<void>
removeListener
Type Parameters
Parameters
removeModerator
- removeModerator(channelId: string): Promise<YTActionResponse>
Parameters
Returns Promise<YTActionResponse>
setCredentials
- setCredentials(credentials?: string | Credentials): void
timeout
- timeout(channelId: string): Promise<void>
Parameters
Returns Promise<void>
unblock
- unblock(contextMenuEndpointParams: string): Promise<undefined | YTAction[]>
Parameters
contextMenuEndpointParams: string
Returns Promise<undefined | YTAction[]>
unhide
- unhide(channelId: string): Promise<void>
Parameters
Returns Promise<void>
unpin
- unpin(actionId: string): Promise<YTActionResponse>
Parameters
Returns Promise<YTActionResponse>
Much faster than Masterchat.init