Hi, is my first thread ![:slight_smile: :slight_smile:](https://emoji.discourse-cdn.com/apple/slight_smile.png?v=12)
I have a problem
Today Discord image embed: dont work
Two days ago : Work normally.
I dont change annything ![:frowning: :frowning:](https://emoji.discourse-cdn.com/apple/frowning.png?v=12)
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](https://us1.discourse-cdn.com/flex016/uploads/glitch/original/3X/9/9/990ee299945aa111846210673db6c5488a714880.jpeg)
My bot have all the permissions:
someone more with this problem? any idea? ![:frowning: :frowning:](https://emoji.discourse-cdn.com/apple/frowning.png?v=12)
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?
ARCodez
4
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);
}```
system
Closed
5
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.