Discord 富不和谐嵌入反应

Discord 富不和谐嵌入反应,discord,discord.js,Discord,Discord.js,我正在用js制作一个不和谐机器人。我有丰富的经验,但我不知道如何应对。message.react('emoji name thing')不起作用。 代码: 您的问题是无法对RichEmbed对象做出反应,只能对消息做出反应。使用以下代码对新发送的消息作出反应 message.channel.send(pollEmbed) .然后(m=>m✔')); 请显示完整的代码。因此,使用我的代码,我应该执行以下操作:message.channel.send(pollEmbed);。然后(m=>m.reac

我正在用js制作一个不和谐机器人。我有丰富的经验,但我不知道如何应对。message.react('emoji name thing')不起作用。 代码:


您的问题是无法对
RichEmbed
对象做出反应,只能对
消息做出反应。使用以下代码对新发送的消息作出反应

message.channel.send(pollEmbed)
.然后(m=>m✔'));

请显示完整的代码。因此,使用我的代码,我应该执行以下操作:
message.channel.send(pollEmbed);。然后(m=>m.react)✔')与上面显示的完全相同。只需复制并粘贴即可。在
之前不应该有分号。然后
var pollEmbed = new discord.RichEmbed()
                .setTitle(message.author.username + " asks " + args)
                .setAuthor(message.author.username)
            message.channel.send(pollEmbed);
            pollEmbed.react("✔")