> ## Documentation Index
> Fetch the complete documentation index at: https://javascript.wapikit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ReactionEvent

[Wapi.js Docs](../README.mdx) / ReactionEvent

# Class: ReactionEvent

Represents a reaction event.

## Implements

## Extends

* [`MessageEvent`](MessageEvent.mdx)

## Implements

* [`ReactionEventInterface`](../interfaces/ReactionEventInterface.mdx)

## Constructors

### new ReactionEvent()

> **new ReactionEvent**(`params`): [`ReactionEvent`](ReactionEvent.mdx)

Creates a new instance of ReactionEvent.

#### Parameters

• **params**

The parameters for creating the ReactionEvent.

• **params.client**: [`Client`](Client.mdx)

The client associated with the event.

• **params.data**

The data associated with the event.

• **params.data.from**: `string`

• **params.data.id**: `string`

• **params.data.isForwarded**: `boolean`

• **params.data.reaction**: [`ReactionMessage`](ReactionMessage.mdx)

• **params.data.timestamp**: `string`

#### Returns

[`ReactionEvent`](ReactionEvent.mdx)

#### Overrides

[`MessageEvent`](MessageEvent.mdx).[`constructor`](MessageEvent.mdx#constructors)

#### Source

[packages/wapi.js/src/webhook/events/reaction/index.ts:32](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/webhook/events/reaction/index.ts#L32)

## Properties

### client

> **client**: [`Client`](Client.mdx)

The client instance associated with the event.

#### Implementation of

[`ReactionEventInterface`](../interfaces/ReactionEventInterface.mdx).[`client`](../interfaces/ReactionEventInterface.mdx#client)

#### Inherited from

[`MessageEvent`](MessageEvent.mdx).[`client`](MessageEvent.mdx#client)

#### Source

[packages/wapi.js/src/webhook/events/base/index.ts:20](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/webhook/events/base/index.ts#L20)

***

### context

> **context**: [`MessageContext`](../type-aliases/MessageContext.mdx)

The context of the message.

#### Implementation of

[`ReactionEventInterface`](../interfaces/ReactionEventInterface.mdx).[`context`](../interfaces/ReactionEventInterface.mdx#context)

#### Inherited from

[`MessageEvent`](MessageEvent.mdx).[`context`](MessageEvent.mdx#context)

#### Source

[packages/wapi.js/src/webhook/events/base/index.ts:37](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/webhook/events/base/index.ts#L37)

***

### isForwarded

> **isForwarded**: `boolean`

#### Inherited from

[`MessageEvent`](MessageEvent.mdx).[`isForwarded`](MessageEvent.mdx#isforwarded)

#### Source

[packages/wapi.js/src/webhook/events/base/index.ts:39](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/webhook/events/base/index.ts#L39)

***

### messageId

> **messageId**: `string`

The ID of the message.

#### Implementation of

[`ReactionEventInterface`](../interfaces/ReactionEventInterface.mdx).[`messageId`](../interfaces/ReactionEventInterface.mdx#messageid)

#### Inherited from

[`MessageEvent`](MessageEvent.mdx).[`messageId`](MessageEvent.mdx#messageid)

#### Source

[packages/wapi.js/src/webhook/events/base/index.ts:36](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/webhook/events/base/index.ts#L36)

***

### reaction

> **reaction**: [`ReactionMessage`](ReactionMessage.mdx)

The reaction message associated with the event.

#### Implementation of

[`ReactionEventInterface`](../interfaces/ReactionEventInterface.mdx).[`reaction`](../interfaces/ReactionEventInterface.mdx#reaction)

#### Source

[packages/wapi.js/src/webhook/events/reaction/index.ts:19](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/webhook/events/reaction/index.ts#L19)

***

### timestamp

> **timestamp**: `number`

The timestamp of the message.

#### Implementation of

[`ReactionEventInterface`](../interfaces/ReactionEventInterface.mdx).[`timestamp`](../interfaces/ReactionEventInterface.mdx#timestamp)

#### Inherited from

[`MessageEvent`](MessageEvent.mdx).[`timestamp`](MessageEvent.mdx#timestamp)

#### Source

[packages/wapi.js/src/webhook/events/base/index.ts:38](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/webhook/events/base/index.ts#L38)

## Methods

### react()

> **react**(`params`): `Promise`\<`object` | `object`>

Reacts to the message with an emoji.

#### Parameters

• **params**

The parameters for the reaction.

• **params.emoji**: `string`

The emoji to react with.

• **params.phoneNumber**: `string`

The phone number of the sender.

#### Returns

`Promise`\<`object` | `object`>

* A promise that resolves with the reaction response.

#### Inherited from

[`MessageEvent`](MessageEvent.mdx).[`react`](MessageEvent.mdx#react)

#### Source

[packages/wapi.js/src/webhook/events/base/index.ts:100](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/webhook/events/base/index.ts#L100)

***

### read()

> **read**(): `Promise`\<`object` | `object` | `object` | `object` | `object`>

Marks the message as read.

#### Returns

`Promise`\<`object` | `object` | `object` | `object` | `object`>

* A promise that resolves with the read response.

#### Inherited from

[`MessageEvent`](MessageEvent.mdx).[`read`](MessageEvent.mdx#read)

#### Memberof

MessageEvent

#### Source

[packages/wapi.js/src/webhook/events/base/index.ts:121](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/webhook/events/base/index.ts#L121)

***

### reply()

> **reply**\<`T`>(`props`): `Promise`\<`object` | `object`>

Sends a reply to the message.

#### Type parameters

• **T** *extends* `BaseMessage`\<`string`>

#### Parameters

• **props**

The properties for the reply.

• **props.message**: `T`

The message to send as a reply.

#### Returns

`Promise`\<`object` | `object`>

* A promise that resolves when the reply is sent.

#### Inherited from

[`MessageEvent`](MessageEvent.mdx).[`reply`](MessageEvent.mdx#reply)

#### Throws

* If the context message ID is not found.

#### Source

[packages/wapi.js/src/webhook/events/base/index.ts:75](https://github.com/sarthakjdev/wapi.js/blob/1b066ed4efaf997a4bb012da51514dfcb4165da6/packages/wapi.js/src/webhook/events/base/index.ts#L75)
