# Struct command::object::Message

> A stored message as returned by `message.history`.

`zaun_community_protocol::command::object::Message` · Struct

```rust
pub struct Message { … }
```

A stored message as returned by `message.history`.

## Fields

### `message_id: MessageId`

Host-assigned id.

### `channel_id: ChannelId`

The channel.

### `sequence: u64`

Its `channel_seq`.

### `author_id: MemberId`

The author, from the connection binding.

### `created_at: u64`

Acceptance time, ms.

### `edited_at: Option<u64>`

Last edit time, ms.

### `content: String`

≤ 4 000 scalars; empty only when the message has an attachment or an embed.

### `embeds: Vec<Embed>`

Rich embeds, in the author's order; absent when none.

### `components: Vec<Component>`

Components (bots only, the protocol); absent when none.

### `flags: u32`

Message flags; absent when 0.

### `interaction_metadata: Option<Box<InteractionMetadata>>`

The interaction this message answers.

### `reply_to: Option<MessageId>`

The message replied to.

### `mentions: Mentions`

Who is mentioned.

### `attachments: Vec<Attachment>`

Attachments, in the order the author listed them.

### `reactions: Vec<ReactionCount>`

Reaction counts.

## Trait implementations

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

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