discord.js say command embed code example
Example: discord.js say command embed
// SENDS WHAT YOU SAY BUT IN EMBED //
// EXAMPLE : !embed Hello, Everyone //
client.on('message', message => {
if (message.content.toLowerCase().startsWith(prefix + 'embed')) {
const MyMessage = message.content.slice(9).trim();
const TestEmbed = new Discord.MessageEmbed()
.setColor('#b700ff')
.setTitle('Embed')
.addField(" \u200B ", "```" + MyMessage + "```")
message.channel.send(TestEmbed)
}
})