From 00aa998ad0ddf65e50f3404c27bc8331ff3f913f Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Fri, 5 May 2023 22:00:37 +0200 Subject: [PATCH] remove redundant code --- src/api/types.rs | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/api/types.rs b/src/api/types.rs index 3683bda..0cb7ba0 100644 --- a/src/api/types.rs +++ b/src/api/types.rs @@ -216,7 +216,7 @@ pub struct Message { mentions: Vec, mention_roles: Vec, mention_channels: Option>, - pub attachments: Vec, + pub attachments: Vec, embeds: Vec, reactions: Option>, nonce: Option, @@ -263,7 +263,7 @@ struct PartialMessage { mentions: Option>, mention_roles: Option>, mention_channels: Option>, - attachments: Option>, + attachments: Option>, embeds: Option>, reactions: Option>, nonce: Option, @@ -368,20 +368,6 @@ struct ChannelMention { name: String, } -#[derive(Debug, Serialize, Deserialize)] -struct Attachment { - id: String, - filename: String, - description: Option, - content_type: Option, - size: i64, - url: String, - proxy_url: String, - height: Option, - width: Option, - ephemeral: Option, -} - #[derive(Debug, Serialize, Deserialize)] /** Represents an Embed. [See the Discord Documentation](https://discord.com/developers/docs/resources/channel#embed-object).