# MessageEditOptions

> **MessageEditOptions** = `string` \| [`EmbedBuilder`](/docs/reference/js/zaun-client/classes/embedbuilder/) \| \{ `allowedMentions?`: [`AllowedMentions`](/docs/reference/js/zaun-client/interfaces/allowedmentions/); `content?`: `string`; `embeds?`: ([`EmbedBuilder`](/docs/reference/js/zaun-client/classes/embedbuilder/) \| [`EmbedData`](/docs/reference/js/zaun-client/interfaces/embeddata/))[] \| `null`; `mentions?`: [`MentionsInput`](/docs/reference/js/zaun-client/interfaces/mentionsinput/); \}

Defined in: [zaun/js/index.d.ts:629](https://github.com/zaunchat/zaun-client/blob/main/zaun/js/index.d.ts#L629)

New text, an embed, or `{ content?, embeds?, mentions?, allowedMentions? }`: text not
given stays; `embeds` replaces them all (`[]` removes them) and may show only attachments
the message has.

## Union Members

`string`

***

[`EmbedBuilder`](/docs/reference/js/zaun-client/classes/embedbuilder/)

***

### Type Literal

\{ `allowedMentions?`: [`AllowedMentions`](/docs/reference/js/zaun-client/interfaces/allowedmentions/); `content?`: `string`; `embeds?`: ([`EmbedBuilder`](/docs/reference/js/zaun-client/classes/embedbuilder/) \| [`EmbedData`](/docs/reference/js/zaun-client/interfaces/embeddata/))[] \| `null`; `mentions?`: [`MentionsInput`](/docs/reference/js/zaun-client/interfaces/mentionsinput/); \}

#### allowedMentions?

> `optional` **allowedMentions?**: [`AllowedMentions`](/docs/reference/js/zaun-client/interfaces/allowedmentions/)

As `send`'s, applied to the text the message is left with (the new `content`, or
its own).

#### content?

> `optional` **content?**: `string`

#### embeds?

> `optional` **embeds?**: ([`EmbedBuilder`](/docs/reference/js/zaun-client/classes/embedbuilder/) \| [`EmbedData`](/docs/reference/js/zaun-client/interfaces/embeddata/))[] \| `null`

#### mentions?

> `optional` **mentions?**: [`MentionsInput`](/docs/reference/js/zaun-client/interfaces/mentionsinput/)

As `send`'s. With neither this nor `allowedMentions` the message keeps its mentions
(the edit sends none, and the host leaves them). With either, the ones named replace
them all: `{}` or nothing the content shows clears them, `@everyone` too. Naming
anyone needs SEND_MESSAGES and counts against the mentions rate limit
(`RATE_LIMITED`). zaun-host 0.4.0 or newer; an older host ignores it.
