Browse Source

Use addField instead of nonexistent setField

pull/9/head
Abheek Dhawan 4 years ago
parent
commit
d2db32da29
  1. 2
      bot/awesomescibo.js

2
bot/awesomescibo.js

@ -186,7 +186,7 @@ async function otherCommands(message) {
} else { } else {
const overrideEmbed = new Discord.MessageEmbed() const overrideEmbed = new Discord.MessageEmbed()
.setAuthor(answerMsg.author.tag, answerMsg.author.displayAvatarURL()) .setAuthor(answerMsg.author.tag, answerMsg.author.displayAvatarURL())
.setField("Correct answer", `\`${data.tossup_answer}\``) .addField("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.`) .setDescription(`It seems your answer was incorrect. Please react with <:override:842778128966615060> to override your answer if you think you got it right.`)
.setTimestamp(); .setTimestamp();
const overrideMsg = answerMsg.channel.send( const overrideMsg = answerMsg.channel.send(

Loading…
Cancel
Save