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 GuildPrivateThread
, the guild must also have the
PRIVATE_THREADS
feature.
Implementations
sourceimpl<'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.
sourcepub const fn invitable(self, invitable: bool) -> Self
pub const fn invitable(self, invitable: bool) -> Self
Whether non-moderators can add other non-moderators to a thread.
sourcepub fn exec(self) -> ResponseFuture<Channel>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<Channel>ⓘ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 CreateThread<'_>
impl TryIntoRequest for CreateThread<'_>
Auto Trait Implementations
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
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