我目前正在开发一个不和谐的机器人,当我编辑一个嵌入时,它会编辑它发送的所有嵌入。前任。如果我打开帮助菜单,然后做出反应以转到审核菜单,它还会编辑其上方的嵌入。我的代码是:
m.edit(moderationEmbed).then(message => ...
有人可以帮忙吗?如果你不明白我的情况,我可以发截图。
这是我的代码:
client.on('messageReactionAdd', (reaction) => {
if (reaction.me) {
return
} else if (reaction.users.fetch(userId)) {
if (reaction.emoji.name === '?' && !reaction.me) {
reaction.message.reactions.removeAll()
m.edit(economyEmbed).then(message => {
message.react('⬅️')
});
} else if (reaction.emoji.name === '?' && !reaction.me) {
reaction.message.reactions.removeAll()
m.edit(gamesEmbed).then(message => {
message.react('⬅️')
});
}
}
});
我为不同的反应编写了几次代码。