Struct twilight_http::request::channel::webhook::DeleteWebhookMessage [−][src]
pub struct DeleteWebhookMessage<'a> { /* fields omitted */ }
Expand description
Delete a message created by a webhook.
Examples
use twilight_http::request::AuditLogReason; use twilight_model::id::{MessageId, WebhookId}; client .delete_webhook_message(WebhookId(1), "token here", MessageId(2)) .reason("reason here")? .exec() .await?;
Implementations
pub 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>;
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
.