@ -83,11 +83,11 @@ export async function execute(interaction) {
categoryArray=['ENERGY'];
break;
default:
interaction.followUp(
newMessageEmbed()
interaction.followUp({
embeds:[newMessageEmbed()
.setDescription('<:red_x:816791117671825409> Not a valid subject!')
.setColor('#ffffff'),
);
.setColor('#ffffff')],
});
return;
}
@ -103,8 +103,9 @@ export async function execute(interaction) {
answers[1]=answers[1].slice(0,answers[1].length-1);// If there are multiple elements, it means there was an 'accept' and therefore a trailing ')' which should be removed
answers=[answers[0],...answers[1].split(newRegExp(' OR ','i'))];// Use the first element plus the last element split by 'OR' case insensitive
.setDescription('It seems your answer was incorrect. Please react with <:override:955265585086857236> to override your answer if you think you got it right.')
.setColor('#ffffff')
@ -152,7 +153,7 @@ export async function execute(interaction) {