Expand description
A utility library to make Serenity’s builder easier to use
[dependencies]
serenity-builder = "0.2"§Overview
Use Serenity’s builder with typed_builder for intuitive handling.
// serenity
let embed = CreateEmbed::default()
.title("This is a test title.")
.description("aaaaaaaaa!")
.author(
serenity::builder::CreateEmbedAuthor::new(MOCK_TEXT)
.url(MOCK_URL)
.icon_url(MOCK_URL),
)
// serenity-builder
let embed = SerenityEmbed::builder()
.title("This is a test title.")
.description("aaaaaaaaa!")
.author_name("m1sk9")
.author_url("https://m1sk9.dev/avatar.png")
.build();§Features
Basic builders (embed, message) are default features. You can use them immediately by entering the version and crate name with cargo add or in Cargo.toml.
If you only want to use specific features, use the --features flag with cargo add:
cargo add serenity-builder --no-default-features --features embed§License
This project is licensed under the Apache License 2.0.