【问题标题】:Discord bot sends replay when a specific user sends a message当特定用户发送消息时,Discord 机器人会发送重播
【发布时间】:2021-01-19 20:00:07
【问题描述】:
userID = "7645876345"

client.on("message", function(message) {
    if (message.author.id === userID) {
        message.react('test');
    }
});

我试图让 discord 机器人在他每次写东西时回复特定用户。 我将这篇文章的用户 ID 更改为随机数。

【问题讨论】:

    标签: discord.js


    【解决方案1】:

    我想通了!我用 message.channel.send() 替换了 message.react

    【讨论】:

    • 请查看 DJS 文档/指南,这篇文章不会有任何用处。
    猜你喜欢
    • 1970-01-01
    • 2021-08-19
    • 2018-04-28
    • 2021-01-08
    • 2021-03-23
    • 2020-01-22
    • 2021-08-18
    • 2018-01-06
    • 1970-01-01
    相关资源
    最近更新 更多