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 fn auto_archive_duration(
self,
auto_archive_duration: AutoArchiveDuration,
) -> Self
pub 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<'_>
source§type Output = Result<Response<Channel>, Error>
type Output = Result<Response<Channel>, Error>
The output that the future will produce on completion.
source§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
source§impl TryIntoRequest for CreateThread<'_>
impl TryIntoRequest for CreateThread<'_>
Auto Trait Implementations§
impl<'a> Freeze for CreateThread<'a>
impl<'a> !RefUnwindSafe for CreateThread<'a>
impl<'a> Send for CreateThread<'a>
impl<'a> Sync for CreateThread<'a>
impl<'a> Unpin for CreateThread<'a>
impl<'a> !UnwindSafe for CreateThread<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more