Added timestamp call to Emmelia builder

This commit is contained in:
Logan Cusano
2023-02-26 22:26:41 -05:00
parent 14b107dd51
commit 94a4694a04
4 changed files with 4 additions and 7 deletions

View File

@@ -6,6 +6,7 @@ const { NodeHtmlMarkdown } = require('node-html-markdown');
exports.EmmeliaEmbedBuilder = class PostEmbedBuilder extends EmbedBuilder {
constructor() {
super()
this.setTimestamp();
this.setFooter({ text: 'Brought to you by Emmelia.' });
}
}
@@ -85,8 +86,7 @@ exports.sendPost = (post, source, channel, callback) => {
.setURL(postLink)
.addFields({ name: "Post Content", value: postContent, inline: false })
.addFields({ name: 'Published', value: postPubDate, inline: true })
.addFields({ name: 'Source', value: postSourceLink, inline: true })
.setTimestamp()
.addFields({ name: 'Source', value: postSourceLink, inline: true })
if (postImage) rssMessage.setImage(postImage);