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 PublicThread
s.
When called in a GuildAnnouncement
channel, returns AnnouncementThread
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> ⓘ
👎Deprecated since 0.14.0: use .await
or into_future
instead
pub fn exec(self) -> ResponseFuture<ThreadsListing> ⓘ
.await
or into_future
insteadExecute the request, returning a future resolving to a Response
.
Trait Implementations
sourceimpl IntoFuture for GetPublicArchivedThreads<'_>
impl IntoFuture for GetPublicArchivedThreads<'_>
type Output = Result<Response<ThreadsListing>, Error>
type Output = Result<Response<ThreadsListing>, Error>
The output that the future will produce on completion.
type IntoFuture = ResponseFuture<ThreadsListing>
type IntoFuture = ResponseFuture<ThreadsListing>
Which kind of future are we turning this into?
sourcefn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
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