From 2978e42b1731f8697ed6b51765557c2e97c14de0 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 14 May 2021 10:16:00 -0500 Subject: [PATCH] Use embed for message override --- bot/awesomescibo.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bot/awesomescibo.js b/bot/awesomescibo.js index c6cd8c8..4684f14 100755 --- a/bot/awesomescibo.js +++ b/bot/awesomescibo.js @@ -184,8 +184,13 @@ async function otherCommands(message) { answerMsg.reply(msgToReply) ); } else { + const overrideEmbed = new Discord.MessageEmbed() + .setAuthor(answerMsg.author.tag, answerMsg.author.displayAvatarURL()) + .setField("Correct answer", `\`${data.tossup_answer}\``) + .setDescription(`It seems your answer was incorrect. Please react with <:override:842778128966615060> to override your answer if you think you got it right.`) + .setTimestamp(); const overrideMsg = answerMsg.channel.send( - `It seems your answer was incorrect. The correct answer was **\`${data.tossup_answer}\`**. Please react with <:override:842778128966615060> to override your answer if you think you got it right.` + overrideEmbed ) .then(overrideMsg => { overrideMsg.react("<:override:842778128966615060>");