#[non_exhaustive]pub struct ThreadListSync {
pub guild_id: GuildId,
pub channel_ids: Option<Vec<ChannelId>>,
pub threads: Vec<Channel>,
pub members: Vec<ThreadMember>,
}Expand description
The data of the Thread List Sync dispatch event: the active threads of channels the bot gained access to.
discord.js counterpart: the ThreadListSync event.
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.guild_id: GuildIdThe guild.
channel_ids: Option<Vec<ChannelId>>The parent channels whose threads are synced (may include channels without active
threads); None means the whole guild.
threads: Vec<Channel>The active threads the bot can access in those channels.
members: Vec<ThreadMember>The bot’s thread members of the synced threads (which threads it was added to).
Trait Implementations§
Source§impl Clone for ThreadListSync
impl Clone for ThreadListSync
Source§impl Debug for ThreadListSync
impl Debug for ThreadListSync
Source§impl<'de> Deserialize<'de> for ThreadListSync
impl<'de> Deserialize<'de> for ThreadListSync
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ThreadListSync
Source§impl PartialEq for ThreadListSync
impl PartialEq for ThreadListSync
Source§impl Serialize for ThreadListSync
impl Serialize for ThreadListSync
impl StructuralPartialEq for ThreadListSync
Auto Trait Implementations§
impl Freeze for ThreadListSync
impl RefUnwindSafe for ThreadListSync
impl Send for ThreadListSync
impl Sync for ThreadListSync
impl Unpin for ThreadListSync
impl UnsafeUnpin for ThreadListSync
impl UnwindSafe for ThreadListSync
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