I've recently came upon an issue with Discord JavaScript (Node) that fails to send the second embed. I've used Embed Visualizer and it does as expected. I think there's an issue with the code itself. Code below.
let t = ":x:"
if (message.guild.users.find("name", "Paralyss").roles.find("name", "Paralyss")){
let t = ":heavy_check_mark:"
}
let v = ":x:"
if(Date.now() - message.createdTimestamp < 5000){
let v = ":heavy_check_mark:"
}
let time = Date.now() - message.createdTimestamp
try {
message.member.guilds.channels.find(`name`, `mod-logs`).send({embed: {
"color": 4886754,
"author": {
"name": "Command Ran",
"icon_url": message.author.avatarURL
},
"fields": [
{
"name": "Status:"
"value": `:heavy_check_mark:**Command Status**\n:heavy_check_mark:**Mod Status**\n${v}**${time}**\n${t}**Administrator**`,
"inline": true
},
{
"name": "Command ran:",
"value": "%**uptime**,
"inline" true
},
{
"name": "Uptime in server:",
"value": `${client.uptime / 1000}`,
"inline": true
}
]
}});
} catch (error) {
console.log(error);
}
Console does not print anything.
embedonce in your code. Maybe I am misunderstanding. - zero298message.member.guilds.channels.find()butGuildMember.guildsis wrong (it should beGuildMember.guild). Try usingmessage.guild.channels.find()instead - Federico Grandi