Wapi.js Docs / MessageSentEvent

Class: MessageSentEvent

Represents an event that is triggered when a message is sent.

Implements

Extends

Implements

Constructors

new MessageSentEvent()

new MessageSentEvent(params): MessageSentEvent

Creates a new instance of the MessageSentEvent class.

Parameters

params

The parameters required to create the event.

params.client: Client

The client object.

params.data

The data associated with the event.

params.data.from: string

params.data.timestamp: string

Returns

MessageSentEvent

Overrides

StatusUpdateEvent.constructor

Source

packages/wapi.js/src/webhook/events/message-sent/index.ts:23

Properties

client

client: Client

The client instance associated with the event.

Implementation of

MessageSentEventInterface.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

MessageSentEventInterface.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

MessageSentEventInterface.timestamp

Inherited from

StatusUpdateEvent.timestamp

Source

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