Discord .setImage 文件不在嵌入内但在嵌入之前发送

Discord .setImage file isn't inside the embed but sent before it

const { Channel } = require("discord.js")

module.exports = {
    name: 'wa',
    description: "summons embed",
    execute(message, args, Discord) { 
        const attachment = new Discord
                      .MessageAttachment('./pictures/Nero (BC).png', 'Nero (BC).png');
        let NewEmbed = new Discord.MessageEmbed()
        .setColor('#FFC62B')
        .setTitle('Nero \(BC\)')
        .attachFiles(attachment)
        .setImage('attachment://Nero (BC).png')
        .setDescription('Black Clover <:female:812724616934064140> \n 324 <:kakera:812729845121155082> \n React with any emoji to claim! \n (Read **$togglereact)**')
        message.channel.send(NewEmbed);
        
    }
}

所以当我尝试使用 $wa 时,嵌入出现并且所有内容都是正确的,除了在嵌入之前发送的文件。

对于任何尝试这样做的人,我建议使用图片托管网站和 .setImage 而不是

const attachment = new Discord
                      .MessageAttachment('./pictures/image name.png', 'image name.png');

.attachFiles(attachment)
        .setImage('attachment://image name.png')

而不是所有这些只使用 .setImage('link to hosting site.png')

对我个人来说,imgur 不起作用,但我不知道我是否可以在这里说网站名称,所以抱歉大家。

但是如果您找到一个链接到 png 而不是链接到嵌入图像的网站的图像托管网站,您会没事的。

希望对您有所帮助!