Options
All
  • Public
  • Public/Protected
  • All
Menu

Class default

Hierarchy

  • TypedEmitter<EmitMap, this>
    • default

Index

Constructors

  • new default(schema: { cron: undefined | string; id: undefined | string; name: undefined | string; platform: undefined | string }[], config?: Config): default
  • Creates a new ytadl listener

    Parameters

    • schema: { cron: undefined | string; id: undefined | string; name: undefined | string; platform: undefined | string }[]

      The input schema, an array of objects with each a name property with the channel name to listen for.

    • Optional config: Config

      An optional config containing tokens or general settings

    Returns default

Properties

data: Record<string, string[]> = {}
schema: { cron: string; id: undefined | string; name: undefined | string; platform: string }[]

Methods

  • addListener<E>(event: E, listener: EmitMap[E]): default
  • Type parameters

    • E: keyof EmitMap

    Parameters

    • event: E
    • listener: EmitMap[E]

    Returns default

  • emit<E>(event: E, ...args: Parameters<EmitMap[E]>): boolean
  • Type parameters

    • E: keyof EmitMap

    Parameters

    • event: E
    • Rest ...args: Parameters<EmitMap[E]>

    Returns boolean

  • eventNames(): (string | symbol)[]
  • fetch(item: { cron: string; id: undefined | string; name: undefined | string; platform: string }): Promise<[string[], FeedItem[]]>
  • Parameters

    • item: { cron: string; id: undefined | string; name: undefined | string; platform: string }
      • cron: string
      • id: undefined | string
      • name: undefined | string
      • platform: string

    Returns Promise<[string[], FeedItem[]]>

  • getMaxListeners(): number
  • init(): Promise<void>
  • listenerCount<E>(event: E): number
  • Type parameters

    • E: keyof EmitMap

    Parameters

    • event: E

    Returns number

  • listeners<E>(event: E): EmitMap[E][]
  • Type parameters

    • E: keyof EmitMap

    Parameters

    • event: E

    Returns EmitMap[E][]

  • off<E>(event: E, listener: EmitMap[E]): default
  • Type parameters

    • E: keyof EmitMap

    Parameters

    • event: E
    • listener: EmitMap[E]

    Returns default

  • on<E>(event: E, listener: EmitMap[E]): default
  • Type parameters

    • E: keyof EmitMap

    Parameters

    • event: E
    • listener: EmitMap[E]

    Returns default

  • once<E>(event: E, listener: EmitMap[E]): default
  • Type parameters

    • E: keyof EmitMap

    Parameters

    • event: E
    • listener: EmitMap[E]

    Returns default

  • prependListener<E>(event: E, listener: EmitMap[E]): default
  • Type parameters

    • E: keyof EmitMap

    Parameters

    • event: E
    • listener: EmitMap[E]

    Returns default

  • prependOnceListener<E>(event: E, listener: EmitMap[E]): default
  • Type parameters

    • E: keyof EmitMap

    Parameters

    • event: E
    • listener: EmitMap[E]

    Returns default

  • rawListeners<E>(event: E): EmitMap[E][]
  • Type parameters

    • E: keyof EmitMap

    Parameters

    • event: E

    Returns EmitMap[E][]

  • removeAllListeners<E>(event?: E): default
  • Type parameters

    • E: keyof EmitMap

    Parameters

    • Optional event: E

    Returns default

  • removeListener<E>(event: E, listener: EmitMap[E]): default
  • Type parameters

    • E: keyof EmitMap

    Parameters

    • event: E
    • listener: EmitMap[E]

    Returns default

  • setMaxListeners(maxListeners: number): default

Generated using TypeDoc