【发布时间】: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