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); }