Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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)
    }
})
 
PREVIOUS NEXT
Tagged: #command #embed
ADD COMMENT
Topic
Name
1+2 =