diff --git a/src/api/types.rs b/src/api/types.rs index 5ca4f26..4e76c8b 100644 --- a/src/api/types.rs +++ b/src/api/types.rs @@ -544,6 +544,7 @@ struct ChannelMention { id: String, guild_id: String, #[serde(rename = "type")] + #[serde(flatten)] channel_type: ChannelType, name: String, } @@ -742,6 +743,7 @@ pub struct GuildMember { pub struct Channel { pub id: String, #[serde(rename = "type")] + #[serde(flatten)] pub channel_type: ChannelType, pub guild_id: Option, pub position: Option,