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

Class PrivateThread

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

Source from the content-addressed store, hash-verified

209#[ts(export_to = "bindings/internal/PrivateThread.ts")]
210#[serde(rename_all = "camelCase")]
211pub struct PrivateThread {
212 pub default_auto_archive_duration_minutes: Option<u32>,
213 pub id: String,
214 pub invitable: Option<bool>,
215 #[ts(type = "'PrivateThread'")]
216 pub kind: ChannelType,
217 pub member: Option<SelfThreadMember>,
218 pub member_count: i8,
219 pub message_count: u32,
220 pub name: String,
221 pub owner_id: Option<String>,
222 pub parent_id: Option<String>,
223 pub permission_overwrites: Vec<PermissionOverwrite>,
224 pub rate_limit_per_user: Option<u16>,
225 pub thread_metadata: ThreadMetadata,
226}
227
228impl TryFrom<twilight_model::channel::Channel> for PrivateThread {
229 type Error = anyhow::Error;

Callers 1

try_fromMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected