Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Masterchat

Hierarchy

  • EventEmitter
    • Masterchat

Index

Constructors

Properties

channelId: string
channelName?: string
isLive?: boolean
title?: string
videoId: string

Accessors

  • 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
  • get stopped(): boolean

Methods

  • addModerator(channelId: string): Promise<YTActionResponse>
  • Manage User API

    Parameters

    • channelId: string

    Returns Promise<YTActionResponse>

  • block(contextMenuEndpointParams: string): Promise<undefined | YTAction[]>
  • Parameters

    • contextMenuEndpointParams: string

    Returns Promise<undefined | YTAction[]>

  • emit<U>(event: U, ...args: Parameters<Events[U]>): boolean
  • fetchMetadataFromEmbed(id: string): Promise<undefined | { channelId: any; channelName: string; channelThumbnail: any; duration: number; status: any; statusText: any; thumbnail: any; title: string }>
  • Parameters

    • id: string

    Returns Promise<undefined | { channelId: any; channelName: string; channelThumbnail: any; duration: number; status: any; statusText: any; thumbnail: any; title: string }>

  • fetchMetadataFromWatch(id: string): Promise<{ channelId: string; channelName: string; isLive: boolean; title: string }>
  • Parameters

    • id: string

    Returns Promise<{ channelId: string; channelName: string; isLive: boolean; title: string }>

  • 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(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(targetChannelId: string): Promise<void>
  • Hide user on the channel

    Parameters

    • targetChannelId: string

    Returns Promise<void>

  • pin(chatId: string): Promise<YTActionResponse>
  • Live Chat Action API

    Parameters

    • chatId: string

    Returns Promise<YTActionResponse>

  • populateMetadata(): Promise<void>
  • removeModerator(channelId: string): Promise<YTActionResponse>
  • setCredentials(credentials?: string | Credentials): void
  • Set credentials. This will take effect on the subsequent requests.

    Parameters

    Returns void

  • stop(): void
  • timeout(channelId: string): Promise<void>
  • Put user in timeout for 300 seconds

    Parameters

    • channelId: string

    Returns Promise<void>

  • unblock(contextMenuEndpointParams: string): Promise<undefined | YTAction[]>
  • Parameters

    • contextMenuEndpointParams: string

    Returns Promise<undefined | YTAction[]>

  • unhide(channelId: string): Promise<void>
  • unpin(actionId: string): Promise<YTActionResponse>

Generated using TypeDoc