EmbedBuilder is a builder pattern for creating ApiEmbed. The result is passed to MessagePayload::add_embed or MessagePayload::add_embed_builder.
Limits
Creating
EmbedBuilder::new
EmbedBuilder::from_embed
ApiEmbed. Use to edit an already-built embed.
Methods
title
description
url
title a clickable link. Not displayed if title is not set.
color
0x5865F2.
color_hex
"#5865F2" and "5865F2" formats. If the string is invalid, the color is not changed.
color_rgb
timestamp
"2024-01-15T12:00:00Z").
Example: current time as timestamp
Example: current time as timestamp
author
footer
text is truncated to 2048 characters.
image
thumbnail
video
audio
field
Once the 25-field limit is reached, new fields are silently ignored - no panic.
build
ApiEmbed. Panics if the total length of all text fields exceeds 6000 characters.
ApiEmbed
The resulting structure from thefluxer_types crate.
Examples
Minimal embed
Minimal embed
Embed with an image
Embed with an image
Multiple embeds in one message
Multiple embeds in one message
Edit an existing embed
Edit an existing embed
