简体   繁体   中英

Discord.js Embed Message giving errors

My code: https://pastebin.com/MTH5Fcm7

When i run the command ?help it gives this error:

(node:20460) DeprecationWarning: The message event is deprecated. Use messageCreate instead (Use node --trace-deprecation... to show where the warning was created)

Uncaught DiscordAPIError: Cannot send an empty message No debugger available, can not send 'variables'

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]}) -

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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