JavaScript Discord Bot的PING测试
我已经为我的Discord Bot使用了此JavaScript程序,但是当我使用命令时“!ping”在不和谐中,机器人也不会回复,
即使它在线,它不起作用,
我不知道我可以做什么,
我可以得到帮助吗?
I have use this javascript program for my discord bot but when I use the command "!ping" in discord, the bot don't reply
Even if it is online, it does not work
I don't know what I can do for change this
Can I have help ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
消息
事件已更改为MessageCreate
,尝试将其更改为此,您也应使用Message.member
而不是消息。作者.Member
。如果那没有解决任何问题,那么该启动很可能是问题。例如
The
message
event has been changed tomessageCreate
, try changing it to that, also you should usemessage.member
instead ofmessage.author.member
. If that doesn't fix anything then the issue is most likely with the startup.E.g.
在我自己的机器人中,我使用
此代码实际上还可以,并在5个bot中使用5个bot。我的代码和您之间的区别是
In my own bot, i use this code
This code is actually ok and use in 3 bots on 5 discords for me. The difference between my code and your, is the