#discord #discord-api #twilight


Create validated message embeds for the Twilight ecosystem

3 releases (breaking)

0.2.0-beta.0 Oct 10, 2020
0.1.1 Oct 10, 2020
0.1.0 Sep 13, 2020
0.0.0 Aug 30, 2020

#9 in #discord-api

35 downloads per month
Used in twilight

ISC license

13K SLoC


discord badge github badge license badge rust badge

twilight-embed-builder is a set of builder for the twilight-rs ecosystem to create a message embed, useful when creating or updating messages.


Build a simple embed:

use twilight_embed_builder::{EmbedBuilder, EmbedFieldBuilder};

let embed = EmbedBuilder::new()
    .description("Here's a list of reasons why Twilight is the best pony:")?
    .field(EmbedFieldBuilder::new("Wings", "She has wings.")?.inline())
    .field(EmbedFieldBuilder::new("Horn", "She can do magic, and she's really good at it.")?.inline())

Build an embed with an image:

use twilight_embed_builder::{EmbedBuilder, ImageSource};

let embed = EmbedBuilder::new()
    .description("Here's a cool image of Twilight Sparkle")?


~37K SLoC