Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ChannelHandler

Hierarchy

  • ChannelHandler

Methods

get

  • get(limit?: number, offset?: number, sort?: string, order?: "asc" | "desc", name?: string): Promise<ChannelData>
  • Returns a list of channels

    Parameters

    • limit: number = 25

      The number of channels to return

    • offset: number = 0

      The number of channels to skip.

    • sort: string = 'id'

      Column name to sort by.

    • order: "asc" | "desc" = 'asc'

      Sort order.

    • name: string = ''

      Channel name search query.

    Returns Promise<ChannelData>

getByBilibiliId

  • getByBilibiliId(id: string): Promise<Channel>
  • Get a channel by its Bilibili id.

    Parameters

    • id: string

      Bilibili id of the channel.

    Returns Promise<Channel>

getById

  • getById(id: number): Promise<Channel>
  • Get a channel by its HoloAPI id

    Parameters

    • id: number

      HoloAPI id of the channel.

    Returns Promise<Channel>

getByYouTubeId

  • getByYouTubeId(id: string): Promise<Channel>
  • Get a channel by its YouTube id.

    Parameters

    • id: string

      YouTube id of the channel.

    Returns Promise<Channel>

Generated using TypeDoc