pub struct CreateForumThread<'a> { /* private fields */ }
Expand description
Creates a new thread in a forum channel.
Requires the SEND_MESSAGES
permission.
Implementations§
source§impl<'a> CreateForumThread<'a>
impl<'a> CreateForumThread<'a>
Set the forum thread’s applied tags.
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 default auto archive duration for newly created threads in the channel.
Automatic archive durations are not locked behind the guild’s boost level.
pub const fn message(self) -> CreateForumThreadMessage<'a>
Auto Trait Implementations§
impl<'a> Freeze for CreateForumThread<'a>
impl<'a> !RefUnwindSafe for CreateForumThread<'a>
impl<'a> Send for CreateForumThread<'a>
impl<'a> Sync for CreateForumThread<'a>
impl<'a> Unpin for CreateForumThread<'a>
impl<'a> !UnwindSafe for CreateForumThread<'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