From 54a310fb3deba0cb89dcb4d30aa361a8e856f056 Mon Sep 17 00:00:00 2001 From: Ashley Graves Date: Wed, 16 Oct 2024 00:35:16 +0200 Subject: [PATCH] buh --- src/commands/utility/file.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/utility/file.js b/src/commands/utility/file.js index 2bb13f0..606e564 100644 --- a/src/commands/utility/file.js +++ b/src/commands/utility/file.js @@ -48,7 +48,8 @@ module.exports = { const footerText = ([ result.filesize, `${result.seed} S`, - `${result.leech} L` + `${result.leech} L`, + result.publishedDate ? new Date(result.publishedDate).toLocaleDateString('en-us', { weekday: "long", year: "numeric", month: "short", day: "numeric" }) : '' ]).filter(notEmpty).join(" • "); const site = result.parsed_url.slice(0, 2).join("://"); @@ -71,8 +72,7 @@ module.exports = { .setDescription(description) .setFooter({ text: footerText - }) - .setTimestamp(result.publishedDate ? new Date(result.publishedDate) : null); + }); embeds.push(embed); }