Home

Published

- 1 min read

discord embed image with file discord js

img of discord embed image with file discord js

The solution for this is noted below

discord embed image with file discord js

Solution

   // Before v13
const embed = new Discord.MessageEmbed()
	.setTitle('Attachments')
	.attachFiles(['./image1.png', './image2.jpg'])
channel.send(embed)
// v13
const embed = new Discord.MessageEmbed().setTitle('Attachment').setImage('attachment://image.png')
channel.send({ embeds: [embed], files: ['./image.png'] })

Try other methods by searching on the site. That is if this doesn’t work