# Struct command::message::Edit

> `message.edit`. Author only.

`zaun_community_protocol::command::message::Edit` · Struct

```rust
pub struct Edit { … }
```

`message.edit`. Author only.

## Fields

### `message_id: MessageId`

The message.

### `content: String`

≤ 4 000 scalars; the edited message must still have content, an attachment or an
embed.

### `embeds: Option<Vec<Embed>>`

The message's new embeds (`EMBED_LINKS` unless empty): absent leaves them unchanged,
`[]` removes them all. Their pictures must be attachments already on the message.

### `components: Option<Vec<Component>>`

New components (bots only): absent leaves them unchanged, `[]` removes them.

### `mentions: Option<Mentions>`

Who the edited message mentions, by `message.send`'s rules: absent leaves the
mentions unchanged, otherwise they replace them all.

## Trait implementations

`Body`, `Clone`, `Debug`, `Deserialize<'de>`, `Eq`, `PartialEq`, `Serialize`, `StructuralPartialEq`, `Validate`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/command/message/struct.Edit.html)
