我正在尝试捕捉 react 以使机器人发送另一个嵌入内容
if (args[0] == "Help" && args[1] == "Images" && args[2] == 'Animals' && !args[3]) {
msg.author.send("Its gonna be messy here on out, so, I'll just send the future embeds here as to not cluttter up your server")
let HIAembed = new Discord.MessageEmbed()
.setTitle('Animal')
.setAuthor("Mo'promo")
.setColor(0x00EEEE)
.setDescription("`Mamamal:`-Bear, lions and tigers,.....oh my.\n\n `Bird:`-Includes storks like the ones in the movie that carried babies.\n\n`Insects:`-Creepy ants.\n\n `Reptiles&hibians:`-Awsome! Snakes and frogs, I don't know bout you, but there my dream come true.\n\n `SeaDwellers`-There once was a starfish named tommy")
msg.channel.send({
embed: HIAembed
}).then(embedMessage => {
embedMessage.react("🐶") && embedMessage.react("🦅") && embedMessage.react("🐝") && embedMessage.react("🐍") && embedMessage.react("🦈");
})
}
正如您所看到的,我已经完成了嵌入并得到了我想要的 react ,只是当用户单击表情符号时在输出另一个嵌入时遇到了一些问题。
最佳答案
您将必须使用.createReactionCollector()
收集 react 并在 react 收集器收集到特定表情符号时发送嵌入内容。
您可以阅读this guide更多地了解 react 收集器。
关于javascript - Discord.js 嵌入另一个嵌入的 react ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61355836/