Struct twilight_http::request::channel::webhook::DeleteWebhookMessage
source · [−]pub struct DeleteWebhookMessage<'a> { /* private fields */ }
Expand description
Delete a message created by a webhook.
Examples
use twilight_http::request::AuditLogReason;
use twilight_model::id::Id;
client
.delete_webhook_message(Id::new(1), "token here", Id::new(2))
.reason("reason here")?
.exec()
.await?;
Implementations
Delete in a thread belonging to the channel instead of the channel itself.
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