try flattening the enum to fix CI

This commit is contained in:
bitfl0wer 2023-05-23 15:10:56 +02:00
parent 64693c8770
commit 420f3798f4
1 changed files with 2 additions and 0 deletions

View File

@ -544,6 +544,7 @@ struct ChannelMention {
id: String, id: String,
guild_id: String, guild_id: String,
#[serde(rename = "type")] #[serde(rename = "type")]
#[serde(flatten)]
channel_type: ChannelType, channel_type: ChannelType,
name: String, name: String,
} }
@ -742,6 +743,7 @@ pub struct GuildMember {
pub struct Channel { pub struct Channel {
pub id: String, pub id: String,
#[serde(rename = "type")] #[serde(rename = "type")]
#[serde(flatten)]
pub channel_type: ChannelType, pub channel_type: ChannelType,
pub guild_id: Option<String>, pub guild_id: Option<String>,
pub position: Option<i32>, pub position: Option<i32>,