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

Properties

channelStates: Record<string, UserState> = {}
globalState?: GlobalUserState

Methods

  • Return an array listing the events for which the emitter has registered listeners.

    Returns keyof UserStateTrackerEvents[]

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

    Parameters

    Returns number

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

    Parameters

    Returns UserStateTracker

Generated using TypeDoc