Answers for "make a discord message embed"

1

make a discord message embed

//command handlers dont do this if you already have them
exports.run = async (client, message, args) => {
  //define the embed with let, const, or var
  var EmbedMessage = new Discord.MessageEmbed()
    .setColor('red')
    .setImage('You can set a image view link from tenor or something just makesure it has https:// in it')
    .setURL('set a url here for ex: https://google.com/ just make sure it's https://')
    .setFooter('this part is the end of the embed you can define the bots logo and tag here by doing client.user.displayAvatarURL, client.user.tag')
    
    //finnaly now to send the message do this
    message.channel.send('EmbedMessage') //Ur embed variable name there
}
Posted by: Guest on June-12-2021

Browse Popular Code Answers by Language