Whatsapp

40214

Whatsapp

440214 >= 2.2222.8

Hierarchy (view full)

Constructors

Properties

allowedIds?: any
attributes: Props & Session
collection?: MuteCollection
expiration: number
idClass: typeof WAJS.whatsapp.Wid
isMuted: boolean
isState: true
mirrorMask: {
    change:expiration: number;
    change:id: number;
    change:isMuted: number;
    change:promises: number;
    change:stale: number;
}

Type declaration

  • change:expiration: number
  • change:id: number
  • change:isMuted: number
  • change:promises: number
  • change:stale: number
parent?: any
promises?: any
proxyName: string
stale?: any
Proxy: string
allowedIds?: any[]
idClass?: any

Methods

  • Parameters

    • id: Stringable
    • context: {
          [key: string]: any;
      }
      • [key: string]: any

    Returns void

  • Alias of on

    Parameters

    • eventName: Event
    • listener: Listener
    • Optional context: any

    Returns this

    Alias

    on

  • Returns boolean

  • Returns void

  • Returns void

  • Returns void

  • Alias of trigger

    Parameters

    • eventName: Event
    • Rest ...args: any[]

    Returns this

    Alias

    trigger

  • Type Parameters

    Parameters

    • attr: T

    Returns MuteModel[T]

  • Type Parameters

    Parameters

    • attr: T

    Returns any

  • Returns boolean

  • Returns boolean

  • Parameters

    • Optional e: boolean

    Returns void

  • Returns void

  • Parameters

    • eventName: Event

    Returns boolean

  • Parameters

    • context: any

      The value of this provided for the call to listener

    • eventName: Event

      The name of the event.

    • Optional listener: Listener

      The callback function.

    Returns this

  • Parameters

    • context: any

      The value of this provided for the call to listener

    • eventName: Event

      The name of the event.

    • Optional listener: Listener

      The callback function.

    Returns this

  • Parameters

    • context: any

      The value of this provided for the call to listener

    • eventName: Event

      The name of the event.

    • Optional listener: Listener

      The callback function.

    Returns this

  • Parameters

    • args: {
          expiration: number;
          isAutoMuted?: boolean;
          sendDevice?: boolean;
      }
      • expiration: number
      • Optional isAutoMuted?: boolean
      • Optional sendDevice?: boolean

    Returns Promise<number>

  • Removes the specified listener from the listener array for the event named eventName.

    Parameters

    • Optional eventName: Event

      The name of the event.

    • Optional listener: Listener

      The callback function.

    • Optional context: any

      The value of this provided for the call to listener

    Returns this

    Returns a reference to the EventEmitter, so that calls can be chained.

  • Adds the listener function to the end of the listeners array for the event named eventName.

    Parameters

    • eventName: Event

      The name of the event.

    • listener: Listener

      The callback function.

    • Optional context: any

      The value of this provided for the call to listener

    Returns this

    Returns a reference to the EventEmitter, so that calls can be chained.

  • Adds a one-time listener function for the event named eventName.

    Parameters

    • eventName: Event

      The name of the event.

    • listener: Listener

      The callback function.

    • Optional context: any

      The value of this provided for the call to listener

    Returns this

    Returns a reference to the EventEmitter, so that calls can be chained.

  • Removes all listeners.

    Returns this

    Returns a reference to the EventEmitter, so that calls can be chained.

  • Alias of off

    Parameters

    • Optional eventName: Event
    • Optional listener: Listener
    • Optional context: any

    Returns this

    Alias

    off

  • Returns void

  • Returns Props

  • Parameters

    • Rest ...args: any

    Returns any

  • Parameters

    • Optional expiration: number
    • Optional isAutoMuted: boolean
    • Optional sendDevice: boolean

    Returns any

  • Parameters

    • Optional context: any
    • Optional eventName: Event
    • Optional listener: Listener

    Returns this

  • Returns Props

  • Synchronously calls each of the listeners registered for the event named eventName, in the order they were registered, passing the supplied arguments to each.

    Parameters

    • eventName: Event
    • Rest ...args: any[]

    Returns this

    Returns a reference to the EventEmitter, so that calls can be chained.

  • Alias of off

    Parameters

    • Optional eventName: Event
    • Optional listener: Listener
    • Optional context: any

    Returns this

    Alias

    off

  • Parameters

    • args: {
          sendDevice?: boolean;
      }
      • Optional sendDevice?: boolean

    Returns Promise<void>

  • Parameters

    • ids: Stringable | Stringable[]
    • Optional t: any

    Returns void

  • Parameters

    • e: any

    Returns boolean