# MessageOptions

Defined in: [sdk/js/src/message.ts:13](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/message.ts#L13)

A message to send.

## Properties

### attachments?

> `optional` **attachments?**: `string`[]

Defined in: [sdk/js/src/message.ts:18](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/message.ts#L18)

Attachment ids from `bot.messages.upload` (or `files` uploaded for you by `send`).

***

### components?

> `optional` **components?**: [`TopLevelComponent`](/docs/reference/js/zaun-bot/type-aliases/toplevelcomponent/)[]

Defined in: [sdk/js/src/message.ts:16](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/message.ts#L16)

***

### componentsV2?

> `optional` **componentsV2?**: `boolean`

Defined in: [sdk/js/src/message.ts:40](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/message.ts#L40)

Lay the message out with Components V2 (content and embeds must be empty). Set
automatically when a component other than an action row is used.

***

### content?

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

Defined in: [sdk/js/src/message.ts:14](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/message.ts#L14)

***

### embeds?

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

Defined in: [sdk/js/src/message.ts:15](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/message.ts#L15)

***

### ephemeral?

> `optional` **ephemeral?**: `boolean`

Defined in: [sdk/js/src/message.ts:31](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/message.ts#L31)

Only the invoker sees it (interaction replies and follow-ups only).

***

### mentions?

> `optional` **mentions?**: `object`

Defined in: [sdk/js/src/message.ts:24](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/message.ts#L24)

Who is notified (each id once; ≤ 50 members, ≤ 20 roles). Zaun names mentions explicitly:
the content only shows them (`userMention(id)`, `roleMention(id)`). On an edit, absent
leaves the mentions as they were, and `{}` clears them.

#### everyone?

> `optional` **everyone?**: `boolean`

#### members?

> `optional` **members?**: `string`[]

#### roles?

> `optional` **roles?**: `string`[]

***

### mentionsFromContent?

> `optional` **mentionsFromContent?**: `boolean`

Defined in: [sdk/js/src/message.ts:29](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/message.ts#L29)

Also notify whoever `content` shows (`<@id>`, `<@&id>`, `@everyone`; see
`parseMentions`). Only for text the bot wrote, never for text a member gave it.

***

### silent?

> `optional` **silent?**: `boolean`

Defined in: [sdk/js/src/message.ts:33](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/message.ts#L33)

Mentions do not notify.

***

### suppressEmbeds?

> `optional` **suppressEmbeds?**: `boolean`

Defined in: [sdk/js/src/message.ts:35](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/message.ts#L35)

Embeds are not shown.
