Struct serenity::builder::EditMessage[][src]

pub struct EditMessage(pub VecMap<&'static str, Value>);

A builder to specify the fields to edit in an existing message.

Examples

Editing the content of a Message to "hello":


let _ = message.edit(|m| m.content("hello"));

Methods

impl EditMessage
[src]

Set the content of the message.

Note: Message contents must be under 2000 unicode code points.

Set an embed for the message.

Trait Implementations

impl Clone for EditMessage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for EditMessage
[src]

Formats the value using the given formatter. Read more

impl Default for EditMessage
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for EditMessage

impl Sync for EditMessage