Struct twilight_http::request::channel::thread::GetPublicArchivedThreads
source · [−]pub struct GetPublicArchivedThreads<'a> { /* private fields */ }
Expand description
Returns archived public threads in the channel.
Requires the READ_MESSAGE_HISTORY
permission.
Threads are ordered by archive_timestamp
in descending order.
When called in a GuildText
channel, returns GuildPublicThread
s.
When called in a GuildNews
channel, returns GuildNewsThread
s.
Implementations
sourceimpl<'a> GetPublicArchivedThreads<'a>
impl<'a> GetPublicArchivedThreads<'a>
sourcepub const fn before(self, before: &'a str) -> Self
pub const fn before(self, before: &'a str) -> Self
Return threads before this ISO 8601 timestamp.
sourcepub fn exec(self) -> ResponseFuture<ThreadsListing>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<ThreadsListing>ⓘ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 TryIntoRequest for GetPublicArchivedThreads<'_>
impl TryIntoRequest for GetPublicArchivedThreads<'_>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for GetPublicArchivedThreads<'a>
impl<'a> Send for GetPublicArchivedThreads<'a>
impl<'a> Sync for GetPublicArchivedThreads<'a>
impl<'a> Unpin for GetPublicArchivedThreads<'a>
impl<'a> !UnwindSafe for GetPublicArchivedThreads<'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