From 621a22df01c1f14020076f89522ca6431fd316d9 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Wed, 30 Aug 2023 00:38:33 +1200 Subject: [PATCH] those code comments were not necessary --- d2m/converters/message-to-event.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d2m/converters/message-to-event.js b/d2m/converters/message-to-event.js index cfdcd12d..f8f9b578 100644 --- a/d2m/converters/message-to-event.js +++ b/d2m/converters/message-to-event.js @@ -265,7 +265,7 @@ async function messageToEvent(message, guild, options = {}, di) { url: await file.uploadDiscordFileToMxc(attachment.url), external_url: attachment.url, body: attachment.filename, - // TODO: filename: attachment.filename and then use body as the caption + filename: attachment.filename, info: { mimetype: attachment.content_type, w: attachment.width, @@ -312,7 +312,7 @@ async function messageToEvent(message, guild, options = {}, di) { url: await file.uploadDiscordFileToMxc(attachment.url), external_url: attachment.url, body: attachment.filename, - // TODO: filename: attachment.filename and then use body as the caption + filename: attachment.filename, info: { mimetype: attachment.content_type, size: attachment.size