1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! [](https://github.com/m1sk9/serenity-builder/actions/workflows/ci.yaml)
//! [](https://github.com/m1sk9/serenity-builder/actions/workflows/release.yaml)
//! [](https://github.com/m1sk9/serenity-builder/blob/main/LICENSE)
//!
//! A utility library to make Serenity's builder easier to use
//!
//! ```toml
//! [dependencies]
//! serenity-builder = "0.2"
//! ```
//!
//! # Overview
//!
//! Use Serenity's builder with typed_builder for intuitive handling.
//!
//! ```rs
//! // 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`:
//!
//! ```sh
//! cargo add serenity-builder --no-default-features --features embed
//! ```
//!
//!
//! # License
//!
//! This project is licensed under the Apache License 2.0.