remove redundant code

This commit is contained in:
bitfl0wer 2023-05-05 22:00:37 +02:00
parent bae45254fe
commit fa0d74e9dd
No known key found for this signature in database
GPG Key ID: 84BBB60DF895ABF2
1 changed files with 2 additions and 16 deletions

View File

@ -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).