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::new(1).expect("non zero"), "token here", MessageId::new(2).expect("non zero"))
.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.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DeleteWebhookMessage<'a>
impl<'a> Send for DeleteWebhookMessage<'a>
impl<'a> Sync for DeleteWebhookMessage<'a>
impl<'a> Unpin for DeleteWebhookMessage<'a>
impl<'a> !UnwindSafe for DeleteWebhookMessage<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more