From f73710bcdf60ea8846d4262ce4f0f05caccf6022 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 19 Jul 2019 04:35:28 +0200 Subject: [PATCH] update info when tweet --- commands/general/tweet.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/commands/general/tweet.js b/commands/general/tweet.js index 099828af..44b974df 100644 --- a/commands/general/tweet.js +++ b/commands/general/tweet.js @@ -66,21 +66,23 @@ class tweetCommand extends Command { const tweetid = response.id_str; - // Im too lazy for now to make an entry in config.json const publicEmbed = new MessageEmbed() .setAuthor('Some user of discord...') .setDescription(args.text) .addField('Link', `https://twitter.com/HahaYesDB/status/${tweetid}`) .setTimestamp(); - + + // Im too lazy for now to make an entry in config.json let channel = this.client.channels.get('597964498921455637'); channel.send({embed: publicEmbed}); const Embed = new MessageEmbed() .setAuthor(message.author.username, message.author.displayAvatarURL()) .setDescription(args.text) - .addField('Link', `https://twitter.com/HahaYesDB/status/${tweetid}`) - .setFooter(`Tweet ID: ${tweetid} | Author ID: ${message.author.id} | Guild ID: ${message.guild.id}`) + .addField('Link', `https://twitter.com/HahaYesDB/status/${tweetid}`, true) + .addField('Tweet ID', tweetid, true) + .addField('Author', `${message.author.username}(${message.author.id})`, true) + .addField('Guild', `${message.guild.name}(${message.guild.id})`, true) .setTimestamp(); channel = this.client.channels.get(twiChannel);