pub struct MessageCreate { /* private fields */ }Expand description
A builder for sending a message.
Implementations§
Source§impl MessageCreate
impl MessageCreate
Sourcepub fn reply(self, message_id: Id<MessageMarker>) -> Self
pub fn reply(self, message_id: Id<MessageMarker>) -> Self
Sets the message to reply to.
Arguments:
message_id- The ID of the message to reply to.
Returns:
MessageCreate - The message builder with the reply set.
Sourcepub fn embed(self, embed: impl Into<Embed>) -> Self
pub fn embed(self, embed: impl Into<Embed>) -> Self
Adds an embed to the message.
Arguments:
embed- The embed to add to the message.
Returns:
MessageCreate - The message builder with the embed added.
Trait Implementations§
Source§impl IntoFuture for MessageCreate
impl IntoFuture for MessageCreate
Source§type Output = Result<Message, TwilightError>
type Output = Result<Message, TwilightError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <MessageCreate as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <MessageCreate as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl Freeze for MessageCreate
impl !RefUnwindSafe for MessageCreate
impl Send for MessageCreate
impl Sync for MessageCreate
impl Unpin for MessageCreate
impl UnsafeUnpin for MessageCreate
impl !UnwindSafe for MessageCreate
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