Wapi.js Docs / MessageUndeliveredEvent

Class: MessageUndeliveredEvent

Represents a message undelivered event. This event occurs when a message fails to be delivered to the recipient.

Implements

Extends

Implements

Constructors

new MessageUndeliveredEvent()

new MessageUndeliveredEvent(params): MessageUndeliveredEvent

Creates a new instance of the MessageUndeliveredEvent class.

Parameters

params

The parameters for creating the event.

params.client: Client

The client instance.

params.data

The data for the event.

params.data.from: string

params.data.timestamp: string

Returns

MessageUndeliveredEvent

Overrides

StatusUpdateEvent.constructor

Source

packages/wapi.js/src/webhook/events/message-undelivered/index.ts:24

Properties

client

client: Client

The client instance associated with the event.

Implementation of

MessageUndeliveredEventInterface.client

Inherited from

StatusUpdateEvent.client

Source

packages/wapi.js/src/webhook/events/base/index.ts:20


context

context: MessageContext

The context of the status update.

Implementation of

MessageUndeliveredEventInterface.context

Inherited from

StatusUpdateEvent.context

Source

packages/wapi.js/src/webhook/events/base/index.ts:207


timestamp

timestamp: number

The timestamp of the status update.

Implementation of

MessageUndeliveredEventInterface.timestamp

Inherited from

StatusUpdateEvent.timestamp

Source

packages/wapi.js/src/webhook/events/base/index.ts:208