# Function command::object::check_embeds

> The state-free rules of a message's embeds: at most 10, each valid and showing something, at most 6 000 scalars of text in all. With `attachments`, every picture an embed shows mus

`zaun_community_protocol::command::object::check_embeds` · Function

```rust
pub fn check_embeds(embeds: &[Embed], attachments: Option<&[AttachmentId]>) -> Result<(), BodyError>
```

The state-free rules of a message's embeds: at most 10, each valid and showing
something, at most 6 000 scalars of text in all. With `attachments`, every picture an
embed shows must be one of them (`check_pictures`).

# Errors
`PAYLOAD_TOO_LARGE` for a text, link or list over its limit (`embeds` with limit 6 000 for
the total text); `BAD_REQUEST` for any other broken rule.

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/command/object/embed/fn.check_embeds.html)
