| 259 | #[ts(export_to = "bindings/internal/NewsThread.ts")] |
| 260 | #[serde(rename_all = "camelCase")] |
| 261 | pub struct NewsThread { |
| 262 | pub default_auto_archive_duration_minutes: Option<u32>, |
| 263 | pub id: String, |
| 264 | #[ts(type = "'NewsThread'")] |
| 265 | pub kind: ChannelType, |
| 266 | pub member: Option<SelfThreadMember>, |
| 267 | pub member_count: i8, |
| 268 | pub message_count: u32, |
| 269 | pub name: String, |
| 270 | pub owner_id: Option<String>, |
| 271 | pub parent_id: Option<String>, |
| 272 | pub rate_limit_per_user: Option<u16>, |
| 273 | pub thread_metadata: ThreadMetadata, |
| 274 | } |
| 275 | |
| 276 | impl TryFrom<twilight_model::channel::Channel> for NewsThread { |
| 277 | type Error = anyhow::Error; |