#[non_exhaustive]pub struct ThreadChannel {Show 16 fields
pub id: ChannelId,
pub guild_id: Option<GuildId>,
pub name: CompactString,
pub parent_id: Option<ChannelId>,
pub owner_id: Option<UserId>,
pub nsfw: bool,
pub last_message_id: Option<MessageId>,
pub rate_limit_per_user: u16,
pub last_pin_timestamp: Option<Timestamp>,
pub message_count: Option<u32>,
pub member_count: Option<u32>,
pub total_message_sent: Option<u32>,
pub thread_metadata: ThreadMetadata,
pub member: Option<Box<ThreadMember>>,
pub applied_tags: Vec<TagId>,
pub flags: ChannelFlags,
}Expand description
A thread: a temporary sub-channel of a text, announcement, forum or media channel.
discord.js counterpart: ThreadChannel.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: ChannelIdThe thread’s ID (for threads started from a message, the message’s ID).
guild_id: Option<GuildId>The guild; None inside GUILD_CREATE.
name: CompactStringThe thread’s name.
parent_id: Option<ChannelId>The channel the thread was created in.
owner_id: Option<UserId>Who created the thread.
nsfw: boolWhether the thread is age-restricted (inherited from the parent).
last_message_id: Option<MessageId>The last message sent (it may not exist any more).
rate_limit_per_user: u16Slowmode, in seconds.
last_pin_timestamp: Option<Timestamp>When the last message was pinned.
message_count: Option<u32>The number of messages, not counting the starter message and deleted messages.
member_count: Option<u32>The approximate number of members; stops counting at 50.
total_message_sent: Option<u32>The number of messages ever sent; unlike message_count it does not go down when
messages are deleted.
thread_metadata: ThreadMetadataThread-specific data.
member: Option<Box<ThreadMember>>The current user’s membership, when they joined the thread (only in some endpoints).
The tags applied to a forum or media post.
flags: ChannelFlagsThe thread’s flags.