remove redundant code
This commit is contained in:
parent
bae45254fe
commit
fa0d74e9dd
|
@ -216,7 +216,7 @@ pub struct Message {
|
||||||
mentions: Vec<UserObject>,
|
mentions: Vec<UserObject>,
|
||||||
mention_roles: Vec<String>,
|
mention_roles: Vec<String>,
|
||||||
mention_channels: Option<Vec<ChannelMention>>,
|
mention_channels: Option<Vec<ChannelMention>>,
|
||||||
pub attachments: Vec<Attachment>,
|
pub attachments: Vec<DiscordFileAttachment>,
|
||||||
embeds: Vec<Embed>,
|
embeds: Vec<Embed>,
|
||||||
reactions: Option<Vec<Reaction>>,
|
reactions: Option<Vec<Reaction>>,
|
||||||
nonce: Option<serde_json::Value>,
|
nonce: Option<serde_json::Value>,
|
||||||
|
@ -263,7 +263,7 @@ struct PartialMessage {
|
||||||
mentions: Option<Vec<UserObject>>,
|
mentions: Option<Vec<UserObject>>,
|
||||||
mention_roles: Option<Vec<String>>,
|
mention_roles: Option<Vec<String>>,
|
||||||
mention_channels: Option<Vec<ChannelMention>>,
|
mention_channels: Option<Vec<ChannelMention>>,
|
||||||
attachments: Option<Vec<Attachment>>,
|
attachments: Option<Vec<DiscordFileAttachment>>,
|
||||||
embeds: Option<Vec<Embed>>,
|
embeds: Option<Vec<Embed>>,
|
||||||
reactions: Option<Vec<Reaction>>,
|
reactions: Option<Vec<Reaction>>,
|
||||||
nonce: Option<serde_json::Value>,
|
nonce: Option<serde_json::Value>,
|
||||||
|
@ -368,20 +368,6 @@ struct ChannelMention {
|
||||||
name: String,
|
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)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
/**
|
/**
|
||||||
Represents an Embed. [See the Discord Documentation](https://discord.com/developers/docs/resources/channel#embed-object).
|
Represents an Embed. [See the Discord Documentation](https://discord.com/developers/docs/resources/channel#embed-object).
|
||||||
|
|
Loading…
Reference in New Issue