javascript - 私人消息机器人不和谐
问题描述
我想向机器人添加一个功能,以私下联系用户,并在参数中使用他的 id。
我已经尝试过了:
sendMessage(idUser, "mesage")
但它不起作用。
我有这个错误:
“未定义发送消息”
解决方案
Yeah message.author.send("MESSAGE")
should work
Also a little handy tip \n
makes a new line if your making lines of text :D
推荐阅读
- penetration-testing - 使用 burp 套件的 Web 应用程序
- javascript - cordova ios iphone x - 顶部0的固定元素不显示在最顶部
- python - 如何对在 __init__ 方法之外初始化的实例变量进行单元测试
- r - 基于包含 tidyverse 类别的其他两列创建新变量
- powershell - 如何查询不同域中的 AD 用户
- jpos - 在 jboss 中部署 jPOS 或在 jboss 中启动 jPOS Q2
- react-native - 我想在本机反应中调用 Object-C 方法
- ruby-on-rails - 如何编写 Rspec HTTP 方法来访问嵌套的显示视图?
- python - Django to_html() 更新以允许用户选择行
- javascript - 通过 ajax 将图像粘贴到 laravel 控制器