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

# updateMessageWithEventResponse

> Update the message with a new event response

> **updateMessageWithEventResponse**(`msg`, `update`): `void`

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

Update the message with a new event response

## Parameters

### msg

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

### update

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

## Returns

`void`
