From e4be9d49c29b011197ca5d2c1887cd6a7d8b0fe0 Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Fri, 5 May 2023 14:38:22 +0200 Subject: [PATCH] change name type from String to i16 --- src/api/types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/types.rs b/src/api/types.rs index 3f52618..1059d62 100644 --- a/src/api/types.rs +++ b/src/api/types.rs @@ -843,7 +843,7 @@ pub struct GatewayPayload { impl WebSocketEvent for GatewayPayload {} pub struct DiscordFileAttachment { - pub name: String, + pub name: i16, pub filename: String, pub file: File, } @@ -862,7 +862,7 @@ impl DiscordFileAttachment { let mut counter = 0; for (filename, file) in filename_file_vec { return_vec.push(DiscordFileAttachment { - name: format!("files[{}]", counter.to_string()), + name: counter, filename, file, });