我正试图引起人们的注意,以使该机器人再次发送嵌入代码
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("?");
})
}
如您所见,我已经完成了嵌入,并做出了想要的反应,当用户单击表情符号时,输出另一个嵌入时遇到了一些麻烦。
答案 0 :(得分:1)
您将不得不使用.createReactionCollector()
收集反应并在反应收集器收集特定表情符号时发送嵌入内容。
您可以阅读this guide来了解反应收集者的更多信息。