【问题标题】:Is it possible to have one Discord bot DM another bot?是否可以让一个 Discord 机器人 DM 另一个机器人?
【发布时间】:2018-08-22 07:20:51
【问题描述】:

我正在构建一个automated test bot,用于测试我的main bot 的命令。一切正常,除了我的test bot 似乎无法接收来自main bot 的 DM。

我目前正在使用 discord.js

message.author.send('test dm from one bot to another')

并得到错误:

DiscordAPIError: Cannot send messages to this user

是否有机器人设置或可能的解决方法,以便我可以测试机器人的 DM 功能?

两个机器人都可以很好地接收来自用户的 DM。

【问题讨论】:

  • 你显然不能用另一个机器人向机器人发送消息

标签: node.js testing chatbot discord discord.js


【解决方案1】:

目前,我认为机器人不可能向另一个机器人发送 DM。

【讨论】:

    猜你喜欢
    • 2021-09-09
    • 2019-02-19
    • 2021-07-10
    • 2021-05-11
    • 2022-11-12
    • 1970-01-01
    • 2021-06-13
    • 2021-04-09
    • 2021-08-26
    相关资源
    最近更新 更多