| 209 | #[ts(export_to = "bindings/internal/PrivateThread.ts")] |
| 210 | #[serde(rename_all = "camelCase")] |
| 211 | pub 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 | |
| 228 | impl TryFrom<twilight_model::channel::Channel> for PrivateThread { |
| 229 | type Error = anyhow::Error; |