pub struct EditThread<'a> { /* private fields */ }
Expand description
Implementations§
Source§impl<'a> EditThread<'a>
impl<'a> EditThread<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Equivalent to Self::default
.
Sourcepub fn name(self, name: impl Into<String>) -> Self
pub fn name(self, name: impl Into<String>) -> Self
The name of the thread.
Note: Must be between 2 and 100 characters long.
Sourcepub fn auto_archive_duration(self, duration: AutoArchiveDuration) -> Self
pub fn auto_archive_duration(self, duration: AutoArchiveDuration) -> Self
Duration in minutes to automatically archive the thread after recent activity.
Sourcepub fn archived(self, archived: bool) -> Self
pub fn archived(self, archived: bool) -> Self
The archive status of the thread.
Note: A thread that is locked
can only be unarchived if the user has the
MANAGE_THREADS
permission.
Sourcepub fn invitable(self, invitable: bool) -> Self
pub fn invitable(self, invitable: bool) -> Self
Whether non-moderators can add other non-moderators to a thread.
Note: Only available on private threads.
Sourcepub fn rate_limit_per_user(self, rate_limit_per_user: u16) -> Self
pub fn rate_limit_per_user(self, rate_limit_per_user: u16) -> Self
Amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission manage_messages, manage_thread, or manage_channel, are unaffected
Sourcepub fn flags(self, flags: ChannelFlags) -> Self
pub fn flags(self, flags: ChannelFlags) -> Self
Channel flags combined as a bitfield; ChannelFlags::PINNED
can only be set for threads
in forum channels
If this is a forum post, edits the assigned tags of this forum post.
Sourcepub fn audit_log_reason(self, reason: &'a str) -> Self
pub fn audit_log_reason(self, reason: &'a str) -> Self
Sets the request’s audit log reason.
Trait Implementations§
Source§impl Builder for EditThread<'_>
impl Builder for EditThread<'_>
Source§fn execute<'life0, 'async_trait>(
self,
cache_http: impl 'async_trait + CacheHttp,
ctx: Self::Context<'life0>,
) -> Pin<Box<dyn Future<Output = Result<Self::Built>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
self,
cache_http: impl 'async_trait + CacheHttp,
ctx: Self::Context<'life0>,
) -> Pin<Box<dyn Future<Output = Result<Self::Built>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§type Context<'ctx> = ChannelId
type Context<'ctx> = ChannelId
type Built = GuildChannel
Source§impl<'a> Clone for EditThread<'a>
impl<'a> Clone for EditThread<'a>
Source§fn clone(&self) -> EditThread<'a>
fn clone(&self) -> EditThread<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more