Struct twilight_http::request::channel::message::DeleteMessages
source · [−]pub struct DeleteMessages<'a> { /* private fields */ }
Expand description
Delete messages by Id<ChannelMarker>
and a list of Id<MessageMarker>
s.
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. See Discord Docs/Bulk Delete Messages.
Implementations
sourceimpl<'a> DeleteMessages<'a>
impl<'a> DeleteMessages<'a>
sourcepub 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>;
Execute the request, returning a future resolving to a Response
.
Trait Implementations
sourceimpl<'a> AuditLogReason<'a> for DeleteMessages<'a>
impl<'a> AuditLogReason<'a> for DeleteMessages<'a>
sourceimpl TryIntoRequest for DeleteMessages<'_>
impl TryIntoRequest for DeleteMessages<'_>
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more