MCPcopy Create free account
hub / github.com/Botloader/botloader / PublicThread

Class PublicThread

components/runtime-models/src/internal/channel.rs:170–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168#[ts(export_to = "bindings/internal/PublicThread.ts")]
169#[serde(rename_all = "camelCase")]
170pub struct PublicThread {
171 pub default_auto_archive_duration_minutes: Option<u32>,
172 pub id: String,
173 #[ts(type = "'PublicThread'")]
174 pub kind: ChannelType,
175 pub member: Option<SelfThreadMember>,
176 pub member_count: i8,
177 pub message_count: u32,
178 pub name: String,
179 pub owner_id: Option<String>,
180 pub parent_id: Option<String>,
181 pub rate_limit_per_user: Option<u16>,
182 pub thread_metadata: ThreadMetadata,
183}
184
185impl TryFrom<twilight_model::channel::Channel> for PublicThread {
186 type Error = anyhow::Error;

Callers 1

try_fromMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected