diff --git a/src/commands/utility/file.js b/src/commands/utility/file.js index ee0aa5b..2bb13f0 100644 --- a/src/commands/utility/file.js +++ b/src/commands/utility/file.js @@ -72,7 +72,7 @@ module.exports = { .setFooter({ text: footerText }) - .setTimestamp(new Date(result.publishedDate)); + .setTimestamp(result.publishedDate ? new Date(result.publishedDate) : null); embeds.push(embed); }