📜  discord 嵌入图像与文件 discord js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:41.358000             🧑  作者: Mango

代码示例1
// 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'] });