#[non_exhaustive]pub struct ModifyThread {
pub name: Option<CompactString>,
pub archived: Option<bool>,
pub auto_archive_duration: Option<AutoArchiveDuration>,
pub locked: Option<bool>,
pub invitable: Option<bool>,
pub rate_limit_per_user: Patch<u16>,
pub flags: Option<ChannelFlags>,
pub applied_tags: Option<Vec<TagId>>,
}Expand description
The body of Modify Channel for a thread (D-109).
Needs MANAGE_THREADS, except for unarchiving an unlocked thread (SEND_MESSAGES).
discord.js counterpart: ThreadEditOptions.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<CompactString>The name (1-100 characters).
archived: Option<bool>Whether the thread is archived.
auto_archive_duration: Option<AutoArchiveDuration>The inactivity after which the thread is archived.
locked: Option<bool>Whether the thread is locked (only MANAGE_THREADS can unarchive it).
invitable: Option<bool>Whether non-moderators can add other non-moderators (private threads only).
rate_limit_per_user: Patch<u16>Slowmode: seconds a member must wait between messages (0-21600).
flags: Option<ChannelFlags>The thread’s flags (PINNED only for posts of forum and media channels).
The tags of a forum or media post (max 5).
Trait Implementations§
Source§impl Clone for ModifyThread
impl Clone for ModifyThread
Source§impl Debug for ModifyThread
impl Debug for ModifyThread
Source§impl Default for ModifyThread
impl Default for ModifyThread
impl Eq for ModifyThread
Source§impl Hash for ModifyThread
impl Hash for ModifyThread
Source§impl PartialEq for ModifyThread
impl PartialEq for ModifyThread
Source§impl Serialize for ModifyThread
impl Serialize for ModifyThread
impl StructuralPartialEq for ModifyThread
Auto Trait Implementations§
impl Forget for ModifyThread
impl Freeze for ModifyThread
impl Move for ModifyThread
impl RefUnwindSafe for ModifyThread
impl Send for ModifyThread
impl Sync for ModifyThread
impl Unpin for ModifyThread
impl UnsafeUnpin for ModifyThread
impl UnwindSafe for ModifyThread
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