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")
.await?;
Implementations§
source§impl<'a> DeleteWebhookMessage<'a>
impl<'a> DeleteWebhookMessage<'a>
sourcepub fn thread_id(self, thread_id: Id<ChannelMarker>) -> Self
pub fn thread_id(self, thread_id: Id<ChannelMarker>) -> Self
Delete in a thread belonging to the channel instead of the channel itself.
Trait Implementations§
source§impl<'a> AuditLogReason<'a> for DeleteWebhookMessage<'a>
impl<'a> AuditLogReason<'a> for DeleteWebhookMessage<'a>
source§impl IntoFuture for DeleteWebhookMessage<'_>
impl IntoFuture for DeleteWebhookMessage<'_>
source§type Output = Result<Response<EmptyBody>, Error>
type Output = Result<Response<EmptyBody>, Error>
The output that the future will produce on completion.
source§type IntoFuture = ResponseFuture<EmptyBody>
type IntoFuture = ResponseFuture<EmptyBody>
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 DeleteWebhookMessage<'_>
impl TryIntoRequest for DeleteWebhookMessage<'_>
Auto Trait Implementations§
impl<'a> Freeze for DeleteWebhookMessage<'a>
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§
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