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 PublicThreads.
When called in a GuildAnnouncement channel, returns AnnouncementThreads.
Implementations§
source§impl<'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§
source§impl 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?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more