[Solved] How can I add Embed message from an array discord.js?


Well You just need to use embeds like in the help command.

Here the code:

if (command === "t") { // Truth
    const truth = t[Math.floor(Math.random() * t.length)];
    message.channel.send(new Discord.MessageEmbed()
        .setTitle("Truth")
        .setDescription(truth));
} else if (command === "d") { // Dare
    const dare = d[Math.floor(Math.random() * d.length)];
    message.channel.send(new Discord.MessageEmbed()
        .setTitle("Dare")
        .setDescription(dare));
}

solved How can I add Embed message from an array discord.js?