remove redundant code
This commit is contained in:
parent
e41563b101
commit
00aa998ad0
|
@ -216,7 +216,7 @@ pub struct Message {
|
|||
mentions: Vec<UserObject>,
|
||||
mention_roles: Vec<String>,
|
||||
mention_channels: Option<Vec<ChannelMention>>,
|
||||
pub attachments: Vec<Attachment>,
|
||||
pub attachments: Vec<DiscordFileAttachment>,
|
||||
embeds: Vec<Embed>,
|
||||
reactions: Option<Vec<Reaction>>,
|
||||
nonce: Option<serde_json::Value>,
|
||||
|
@ -263,7 +263,7 @@ struct PartialMessage {
|
|||
mentions: Option<Vec<UserObject>>,
|
||||
mention_roles: Option<Vec<String>>,
|
||||
mention_channels: Option<Vec<ChannelMention>>,
|
||||
attachments: Option<Vec<Attachment>>,
|
||||
attachments: Option<Vec<DiscordFileAttachment>>,
|
||||
embeds: Option<Vec<Embed>>,
|
||||
reactions: Option<Vec<Reaction>>,
|
||||
nonce: Option<serde_json::Value>,
|
||||
|
@ -368,20 +368,6 @@ struct ChannelMention {
|
|||
name: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
struct Attachment {
|
||||
id: String,
|
||||
filename: String,
|
||||
description: Option<String>,
|
||||
content_type: Option<String>,
|
||||
size: i64,
|
||||
url: String,
|
||||
proxy_url: String,
|
||||
height: Option<String>,
|
||||
width: Option<String>,
|
||||
ephemeral: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
/**
|
||||
Represents an Embed. [See the Discord Documentation](https://discord.com/developers/docs/resources/channel#embed-object).
|
||||
|
|
Loading…
Reference in New Issue