| 168 | #[ts(export_to = "bindings/internal/PublicThread.ts")] |
| 169 | #[serde(rename_all = "camelCase")] |
| 170 | pub 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 | |
| 185 | impl TryFrom<twilight_model::channel::Channel> for PublicThread { |
| 186 | type Error = anyhow::Error; |