Struct twilight_http::request::channel::message::DeleteMessages [−][src]
pub struct DeleteMessages<'a> { /* fields omitted */ }Expand description
Delete messages by ChannelId and a list of MessageIds.
The number of message IDs must be between 2 and 100. If the supplied message IDs are invalid, they still count towards the lower and upper limits. This method will not delete messages older than two weeks. Refer to the discord docs for more information.
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 DeleteMessages<'a>
impl<'a> Send for DeleteMessages<'a>
impl<'a> Sync for DeleteMessages<'a>
impl<'a> Unpin for DeleteMessages<'a>
impl<'a> !UnwindSafe for DeleteMessages<'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