Embed Image dont work

Hi, is my first thread :slight_smile:

I have a problem
Today Discord image embed: dont work
Two days ago : Work normally.

I dont change annything :frowning:

is a simple embed image:

const Discord = require(‘discord.js’);

module.exports.run = (message) => {
let channel = message.guild.channels.cache.find(canal => canal.id === ‘456234795412750336’)

const embed = new Discord.MessageEmbed()
.setTitle("------")
.setDescription(‘Image embed’)
.setImage(“https://i.imgur.com/qrjIPkF.png”)
.setColor(Math.floor(Math.random() * 16777214) + 1)
channel.send({ embed });
}

result:
bg

My bot have all the permissions:

someone more with this problem? any idea? :frowning:

I think the discord.js pkg (from npm) are update, so you have to use json format to send embed ?

1 Like

okey, like put all my images in a “image.json” file and get from him?

Try this

const Discord = require(‘discord.js’);

module.exports.run = (message) => {
let channel = message.guild.channels.cache.find(canal => canal.id === ‘456234795412750336’)

const embed = new Discord.MessageEmbed()
.setTitle("------")
.setDescription(‘Image embed’)
.setImage('https://i.imgur.com/qrjIPkF.png')
.setColor(Math.floor(Math.random() * 16777214) + 1)
channel.send(embed);
}```