From 420f3798f469aae893b875406b9667ada08e3013 Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Tue, 23 May 2023 15:10:56 +0200 Subject: [PATCH] try flattening the enum to fix CI --- src/api/types.rs | 2 ++ 1 file changed, 2 insertions(+) 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,