From 54509c246f834345e381e7cbecc18ac27a6b2b04 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Thu, 10 Jun 2021 11:13:46 -0600 Subject: [PATCH] status embed --- util/mention.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/util/mention.js b/util/mention.js index d2d83b3..94990ca 100644 --- a/util/mention.js +++ b/util/mention.js @@ -12,7 +12,11 @@ module.exports = async(message, msg, args, cmd, prefix, mention, client) => { if (tu && tu.statusmsg.length) { if (!client.misc.statusPings.has(message.guild.id)) {client.misc.statusPings.set(message.guild.id, new Discord.Collection());} client.misc.statusPings.get(message.guild.id).set(mention.id, new Date()); - let m = await message.channel.send(`That user ${tu.statustype === 'dnd' ? 'wishes not to be disturbed' : 'is AFK'}. Reason: ${tu.statusmsg}.${tu.statussetat ? ` \`(This status was set ${moment(tu.statussetat.getTime()).fromNow()})\`` : ''}`); + let m = await message.channel.send(new Discord.MessageEmbed() + .setAuthor(mention.tag, mention.avatarURL()) + .setDescription(`That user ${tu.statustype === 'dnd' ? 'wishes not to be disturbed' : 'is AFK'}. Reason: ${tu.statusmsg}.${tu.statussetat ? ` \`(This status was set ${moment(tu.statussetat.getTime()).fromNow()})\`` : ''}`) + .setColor('328ba8') + ); await require('../util/wait')(10000); m.delete().catch((e) => {console.log(e);}); //console.log(m);