【发布时间】:2020-01-29 06:50:12
【问题描述】:
如何让机器人对它刚刚通过 id 不和谐发送的消息做出反应?
在这种情况下,我已经得到了消息 id:
if(inf.t !== "MESSAGE_UPDATE") return
let here = inf.d.id;
if(inf.d.id === `${here}`){
message.channel.send(`${here}`);
message.react("✅"); //this react is just to this reaction is only in
//the message that I sent the command
}
});
【问题讨论】:
标签: javascript node.js discord discord.js