Struct serenity::builder::EditMessage [−][src]
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]
impl EditMessage
pub fn content<D: Display>(self, content: D) -> Self
[src]
pub fn content<D: Display>(self, content: D) -> Self
Set the content of the message.
Note: Message contents must be under 2000 unicode code points.
pub fn embed<F>(self, f: F) -> Self where
F: FnOnce(CreateEmbed) -> CreateEmbed,
[src]
pub fn embed<F>(self, f: F) -> Self where
F: FnOnce(CreateEmbed) -> CreateEmbed,
Set an embed for the message.
Trait Implementations
impl Clone for EditMessage
[src]
impl Clone for EditMessage
fn clone(&self) -> EditMessage
[src]
fn clone(&self) -> EditMessage
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for EditMessage
[src]
impl Debug for EditMessage
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for EditMessage
[src]
impl Default for EditMessage
fn default() -> EditMessage
[src]
fn default() -> EditMessage
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for EditMessage
impl Send for EditMessage
impl Sync for EditMessage
impl Sync for EditMessage