pub struct ExecuteWebhookAndWait<'a> { /* private fields */ }
Expand description
Execute a webhook, sending a message to its channel, and then wait for the message to be created.
§Examples
use twilight_http::Client;
use twilight_model::id::Id;
let client = Client::new("my token".to_owned());
let id = Id::new(432);
let message = client
.execute_webhook(id, "webhook token")
.content("Pinkie...")
.wait()
.await?
.model()
.await?;
println!("message id: {}", message.id);
Trait Implementations§
source§impl IntoFuture for ExecuteWebhookAndWait<'_>
impl IntoFuture for ExecuteWebhookAndWait<'_>
source§type Output = Result<Response<Message>, Error>
type Output = Result<Response<Message>, Error>
The output that the future will produce on completion.
source§type IntoFuture = ResponseFuture<Message>
type IntoFuture = ResponseFuture<Message>
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
source§impl TryIntoRequest for ExecuteWebhookAndWait<'_>
impl TryIntoRequest for ExecuteWebhookAndWait<'_>
Auto Trait Implementations§
impl<'a> Freeze for ExecuteWebhookAndWait<'a>
impl<'a> !RefUnwindSafe for ExecuteWebhookAndWait<'a>
impl<'a> Send for ExecuteWebhookAndWait<'a>
impl<'a> Sync for ExecuteWebhookAndWait<'a>
impl<'a> Unpin for ExecuteWebhookAndWait<'a>
impl<'a> !UnwindSafe for ExecuteWebhookAndWait<'a>
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