So basically, I am making a trivia with random questions, but I have no idea how to put 2 "actions" in a single random choice. I managed to put the question (For the sake of this question I've replaced the questions with "Question").
Here is the code:
if (message.content.startsWith(prefix + 'random')) {
questions = [
'Question1',
'Question2',
'Question3',
'Question4',
'Question5',
'Question6',
'Question 7',
'Question 8',
'Question9',
'Question10',
];
question = Math.floor(Math.random() * questions.length);
var embed = new Discord.MessageEmbed()
.setTitle(':dvd: Question')
.setDescription(invisible)
.addField(questions[question], invisible) //Here I put a random question
.addField(
'Here I want to put the answer choices',
'Here I want to put the answer choices'
) // And here I would want to put the appropriate answer choices
.setColor('#f5980c')
.addField(invisible, field)
.setFooter(footer);
message.channel.send(embed);
console.log(` ${message.author.tag} used Question`);
}