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

# updateMessageWithReaction

> Update the message with a new reaction

> **updateMessageWithReaction**(`msg`, `reaction`): `void`

Defined in: [src/Utils/messages.ts:891](https://github.com/WhiskeySockets/Baileys/blob/master/src/Utils/messages.ts#L891)

Update the message with a new reaction

## Parameters

### msg

`Pick`\<[`WAMessage`](/api-reference/type-aliases/WAMessage), `"reactions"`>

### reaction

[`IReaction`](/proto-reference/interfaces/IReaction)

## Returns

`void`
