Node.js 在Discord.js上发布另一个反应帖子时遇到问题

Node.js 在Discord.js上发布另一个反应帖子时遇到问题,node.js,discord,discord.js,embed,Node.js,Discord,Discord.js,Embed,我有一个问题,使嵌入有反应,当你作出反应,它将发布另一个嵌入在不和谐的聊天,这是所有试图使机器人,解释数学和代数,我也需要在一个文件中这样做,我找不到任何教程,我不知道如何做到这一点 谢谢大家! module.exports = { name: 'algebra', description: 'This is a test embed command', async execute(message, args, Discord, client){ cons

我有一个问题,使嵌入有反应,当你作出反应,它将发布另一个嵌入在不和谐的聊天,这是所有试图使机器人,解释数学和代数,我也需要在一个文件中这样做,我找不到任何教程,我不知道如何做到这一点

谢谢大家!

module.exports = {
    name: 'algebra',
    description: 'This is a test embed command',
    async execute(message, args, Discord, client){
        const newEmbed = new Discord.MessageEmbed()
        .setColor('#3B0099')
        .setThumbnail('https://i.imgur.com/a/Wnjoo1L') 
        .setTimestamp() 
        .setAuthor('This was written by (REDACTED)') 
        .setDescription('Once finished reading this you should know a lot about algebra!') 
        .setFooter('Algebra') 
        .addFields(
            {name: 'The Basics Behind Algebra', value: 'Algebra can be a simpal concept if approached correctly, as in you must know what the steps you will take are and complete them in the correct order and way. Algebra mainly focuses on substituting numbers with letters. If you want to learn more about this please react with the letter A'}, 
            {name: 'The Theory of Algebra', value: 'The theory of Algebra is one that is... If you want to learn more about this please react with the letter B'} 
            )
            message.channel.send(newEmbed).then((msg) =>{
                msg.react('1️⃣');
                msg.react('2️⃣');
                msg.react('3️⃣');
                msg.react('4️⃣');
                msg.react('5️⃣');
                msg.react('6️⃣');
                msg.react('7️⃣');
                msg.react('8️⃣');
                msg.react('9️⃣');
                msg.react('Please, read the documentation about collectors (https://discordjs.guide/popular-topics/collectors.html)
This is an example

    let ageEmbed = new Discord.MessageEmbed()
    .setTitle('Please, specify your age with the reactions below...')
    .addField('1️⃣', '17-')
    .addField('2️⃣', '18+')
    .setColor('#FF1493')
  let msg = await message.channel.send(ageEmbed)
  await msg.react('1️⃣');
  await msg.react('2️⃣');


  const filter_age = (reaction, user) => {
    return reaction.emoji.name === '1️⃣' || '2️⃣' && user.id === message.author.id && !user.bot;
  }

  const collector_age = msg.createReactionCollector(filter_age, {
    time: 30000,
    max: 1
  });


  collector_age.on('collect', async (reaction, user) => {
    if (reaction.emoji.name === '1️⃣') {
      let embed2 = new Discord.MessageEmbed()
      .setDescription(`You reacted with :one:`)
      .addField('Hey', ":one:");
      message.channel.send(embed2)
    } else {
  let embed = new Discord.MessageEmbed()
  .setDescription("You reacted with :two:")
  message.channel.send(embed)
}
module.exports={
名称:'代数',
描述:“这是一个测试嵌入命令”,
异步执行(消息、参数、不一致、客户端){
const newEmbed=newdiscord.MessageEmbed()
.setColor(“#3B0099”)
.setThumbnail('https://i.imgur.com/a/Wnjoo1L') 
.setTimestamp()文件
.setAuthor('这是由(编辑)编写的)'
.setDescription('读完这篇文章后,你应该对代数有很多了解!')
.setFooter('代数')
addFields先生(
{name:'代数背后的基础',value:'如果正确处理,代数可以是一个简单的概念,因为你必须知道你将要采取的步骤,并以正确的顺序和方式完成它们。代数主要关注用字母替换数字。如果你想了解更多信息,请用字母a'},
{name:'代数理论',value:'代数理论是……如果你想了解更多,请用字母B'}
)
message.channel.send(newEmbed).then((msg)=>{
msg.react('1️⃣');
msg.react('2️⃣');
味精反应('3️⃣');
味精反应('4️⃣');
味精反应('5️⃣');
msg.react('6️⃣');
味精反应('7️⃣');
味精反应('8️⃣');
味精反应('9️⃣');

msg.react('请阅读有关收集器的文档() 这是一个例子

})


如果您使用其中一个进行了反应,则bot将发送一条嵌入消息“youreacted with:one:”。否则,bot将发送一条嵌入消息“youreacted with:two:

谢谢您工作得很好!”!