首页 > 解决方案 > 私人消息机器人不和谐

问题描述

我想向机器人添加一个功能,以私下联系用户,并在参数中使用他的 id。

我已经尝试过了:

sendMessage(idUser, "mesage")

但它不起作用。

我有这个错误:

“未定义发送消息”

标签: javascriptbotsdiscord.jsprivate-messaging

解决方案


Yeah message.author.send("MESSAGE") should work

Also a little handy tip \n makes a new line if your making lines of text :D


推荐阅读