Options
All
  • Public
  • Public/Protected
  • All
Menu

Tracks the state of the logged in user (the bot) in all channels the bot operates in

Hierarchy

Implements

Index

Constructors

  • Returns RoomStateTracker

Methods

  • Type parameters

    • T: "newChannelState"

    Parameters

    Returns RoomStateTracker

  • Calls each of the listeners registered for a given event.

    Type parameters

    • T: "newChannelState"

    Parameters

    Returns boolean

  • eventNames(): "newChannelState"[]
  • Return an array listing the events for which the emitter has registered listeners.

    Returns "newChannelState"[]

  • getChannelState(channelName: string): undefined | RoomState
  • listenerCount(event: "newChannelState"): number
  • Return the number of listeners listening to a given event.

    Parameters

    • event: "newChannelState"

    Returns number

  • listeners<T>(event: T): ((...args: ArgumentMap<RoomStateTrackerEvents>[Extract<T, "newChannelState">]) => void)[]
  • Return the listeners registered for a given event.

    Type parameters

    • T: "newChannelState"

    Parameters

    • event: T

    Returns ((...args: ArgumentMap<RoomStateTrackerEvents>[Extract<T, "newChannelState">]) => void)[]

  • Type parameters

    • T: "newChannelState"

    Parameters

    • event: T
    • Optional fn: (...args: ArgumentMap<RoomStateTrackerEvents>[Extract<T, "newChannelState">]) => void
    • Optional context: any
    • Optional once: boolean

    Returns RoomStateTracker

  • Add a listener for a given event.

    Type parameters

    • T: "newChannelState"

    Parameters

    Returns RoomStateTracker

  • Add a one-time listener for a given event.

    Type parameters

    • T: "newChannelState"

    Parameters

    Returns RoomStateTracker

  • Remove all listeners, or those of the specified event.

    Parameters

    • Optional event: "newChannelState"

    Returns RoomStateTracker

  • Remove the listeners of a given event.

    Type parameters

    • T: "newChannelState"

    Parameters

    • event: T
    • Optional fn: (...args: ArgumentMap<RoomStateTrackerEvents>[Extract<T, "newChannelState">]) => void
    • Optional context: any
    • Optional once: boolean

    Returns RoomStateTracker

Generated using TypeDoc