pub struct EditMessage { /* private fields */ }
Expand description
Represents a message that is being edited in a Discord channel.
Implementations§
Source§impl EditMessage
impl EditMessage
pub fn new() -> EditMessage
Sourcepub fn with_content(self, content: impl Into<String>) -> Self
pub fn with_content(self, content: impl Into<String>) -> Self
Adds the content to edit into this message.
Sourcepub fn with_embed(self, embed: Embed) -> Self
pub fn with_embed(self, embed: Embed) -> Self
Adds an embed to be edited into this message.
Trait Implementations§
Source§impl Clone for EditMessage
impl Clone for EditMessage
Source§fn clone(&self) -> EditMessage
fn clone(&self) -> EditMessage
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EditMessage
impl Debug for EditMessage
Source§impl Default for EditMessage
impl Default for EditMessage
Source§fn default() -> EditMessage
fn default() -> EditMessage
Returns the “default value” for a type. Read more
Source§impl MessageResponse for EditMessage
impl MessageResponse for EditMessage
fn as_message(self) -> CreateMessageOptions
Auto Trait Implementations§
impl Freeze for EditMessage
impl RefUnwindSafe for EditMessage
impl Send for EditMessage
impl Sync for EditMessage
impl Unpin for EditMessage
impl UnwindSafe for EditMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more