try flattening the enum to fix CI
This commit is contained in:
parent
64693c8770
commit
420f3798f4
|
@ -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>,
|
||||||
|
|
Loading…
Reference in New Issue