Struct twilight_http::request::channel::thread::CreateThread
source · pub struct CreateThread<'a> { /* private fields */ }
Expand description
Start a thread that is not connected to a message.
To make a PrivateThread
, the guild must also have the
PRIVATE_THREADS
feature.
Implementations§
source§impl<'a> CreateThread<'a>
impl<'a> CreateThread<'a>
sourcepub const fn auto_archive_duration(
self,
auto_archive_duration: AutoArchiveDuration
) -> Self
pub const fn auto_archive_duration(
self,
auto_archive_duration: AutoArchiveDuration
) -> Self
Set the thread’s auto archive duration.
Automatic archive durations are not locked behind the guild’s boost level.
Trait Implementations§
source§impl IntoFuture for CreateThread<'_>
impl IntoFuture for CreateThread<'_>
§type Output = Result<Response<Channel>, Error>
type Output = Result<Response<Channel>, Error>
The output that the future will produce on completion.
§type IntoFuture = ResponseFuture<Channel>
type IntoFuture = ResponseFuture<Channel>
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