[英]Discord.js Embed Message giving errors
My code: https://pastebin.com/MTH5Fcm7我的代码: https://pastebin.com/MTH5Fcm7
When i run the command ?help
it gives this error:当我运行命令
?help
它给出了这个错误:
(node:20460) DeprecationWarning: The message event is deprecated. (node:20460) DeprecationWarning:消息事件已被弃用。 Use messageCreate instead (Use
node --trace-deprecation...
to show where the warning was created)改用 messageCreate (使用
node --trace-deprecation...
显示警告的创建位置)
Uncaught DiscordAPIError: Cannot send an empty message No debugger available, can not send 'variables'未捕获的 DiscordAPIError:无法发送空消息没有可用的调试器,无法发送“变量”
assuming you are using the latest version of discord.js (v13) to send an embed you have to do <channel>.send({embeds: [array of embeds]})
-假设您使用最新版本的 discord.js (v13) 发送嵌入,您必须执行
<channel>.send({embeds: [array of embeds]})
-
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.