所以有一个机器人可以将嵌入内容发送到特定频道并使用新信息一次对其进行编辑。
而且我需要在另一个频道中嵌入一个基本上复制该机器人嵌入的频道,当机器人更新其嵌入时,我也需要更新我的嵌入,但只更改标题。
我只是来解决这个问题,但我不知道该怎么做,我会很感激一些帮助。
client.on("message", (message) => {
if (message.channel.id === "809470058173562960") {
if (!message.author.bot || !message.embeds[0]) return;
const receivedEmbed = message.embeds[0];
const exampleEmbed = new Discord.MessageEmbed(receivedEmbed).setTitle("New title");
client.channels.fetch(809470016486375444).then((channel) => {
channel.send(exampleEmbed);
});
}
});