change name type from String to i16

This commit is contained in:
bitfl0wer 2023-05-05 14:38:22 +02:00
parent 24483f7194
commit e4be9d49c2
1 changed files with 2 additions and 2 deletions

View File

@ -843,7 +843,7 @@ pub struct GatewayPayload {
impl WebSocketEvent for GatewayPayload {} impl WebSocketEvent for GatewayPayload {}
pub struct DiscordFileAttachment { pub struct DiscordFileAttachment {
pub name: String, pub name: i16,
pub filename: String, pub filename: String,
pub file: File, pub file: File,
} }
@ -862,7 +862,7 @@ impl DiscordFileAttachment {
let mut counter = 0; let mut counter = 0;
for (filename, file) in filename_file_vec { for (filename, file) in filename_file_vec {
return_vec.push(DiscordFileAttachment { return_vec.push(DiscordFileAttachment {
name: format!("files[{}]", counter.to_string()), name: counter,
filename, filename,
file, file,
}); });