最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

Discord.js我如何使漫游器对刚刚通过id不一致发送的消息作出反应?

IT培训 admin 5浏览 0评论

Discord.js我如何使漫游器对刚刚通过id不一致发送的消息作出反应?

我如何让漫游器对它刚通过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
         }
        });
回答如下:

使用.then(),如下:

message.channel.send(here).then(m => m..react("✅"))

more on .then() here

Discord.js我如何使漫游器对刚刚通过id不一致发送的消息作出反应?

我如何让漫游器对它刚通过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
         }
        });
回答如下:

使用.then(),如下:

message.channel.send(here).then(m => m..react("✅"))

more on .then() here

发布评论

评论列表 (0)

  1. 暂无评论