繁体   English   中英

Discord.js 嵌入消息给出错误

[英]Discord.js Embed Message giving errors

我的代码: https://pastebin.com/MTH5Fcm7

当我运行命令?help它给出了这个错误:

(node:20460) DeprecationWarning:消息事件已被弃用。 改用 messageCreate (使用node --trace-deprecation...显示警告的创建位置)

未捕获的 DiscordAPIError:无法发送空消息没有可用的调试器,无法发送“变量”

假设您使用最新版本的 discord.js (v13) 发送嵌入,您必须执行<channel>.send({embeds: [array of embeds]}) -

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM