try flattening the enum to fix CI

This commit is contained in:
bitfl0wer 2023-05-23 15:10:56 +02:00
parent 0c22e241fa
commit de9040de80
No known key found for this signature in database
GPG Key ID: 84BBB60DF895ABF2
1 changed files with 2 additions and 0 deletions

View File

@ -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<String>,
pub position: Option<i32>,