Struct twilight_http::request::application::interaction::DeleteResponse
source · [−]pub struct DeleteResponse<'a> { /* private fields */ }
Expand description
Delete a followup message to an interaction, by its token and message ID.
This endpoint is not bound to the application’s global rate limit.
Examples
use std::env;
use twilight_http::{Client, request::AuditLogReason};
use twilight_model::id::Id;
let client = Client::new(env::var("DISCORD_TOKEN")?);
let application_id = Id::new(1);
client
.interaction(application_id)
.delete_response("token here")
.exec()
.await?;
Implementations
sourceimpl<'a> DeleteResponse<'a>
impl<'a> DeleteResponse<'a>
sourcepub fn exec(self) -> ResponseFuture<EmptyBody>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<EmptyBody>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
Execute the request, returning a future resolving to a Response
.
Trait Implementations
sourceimpl TryIntoRequest for DeleteResponse<'_>
impl TryIntoRequest for DeleteResponse<'_>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DeleteResponse<'a>
impl<'a> Send for DeleteResponse<'a>
impl<'a> Sync for DeleteResponse<'a>
impl<'a> Unpin for DeleteResponse<'a>
impl<'a> !UnwindSafe for DeleteResponse<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more