Struct discord::builders::EmbedBuilder [] [src]

pub struct EmbedBuilder(_);

Patch content for the send_embed call.

Methods

impl EmbedBuilder
[src]

Merge this builder's contents with another of the same type. Keys in other will override those in self.

This method is intended to be used with deserialized instances. Note that deserialization does not check that the keys are valid for the relevant API call.

discord.edit_server(|b| b
    .merge(serde_json::from_str(r#"{"name":"My Server"}"#)?))

impl EmbedBuilder
[src]

Add the "title of embed".

Add the "description of embed".

Add the "url of embed".

Add the "timestamp of embed content".

Add the "color code of the embed".

Add "footer information". See the EmbedFooterBuilder struct for the editable fields.

Add "source url of image". Only supports http(s).

Add "source url of thumbnail". Only supports http(s).

Add "author information". See the EmbedAuthorBuilder struct for the editable fields.

Add "fields information". See the EmbedFieldsBuilder struct for the editable fields.