所以,我正在编写一个轮询机器人,我正在做一些事情,如果一个用户只说‘轮询’,系统会用一个嵌入式命令来响应,告诉他们使用正确的命令。但是,我得到了一个引用错误:未定义MessageEmbed。请帮我处理这个。代码如下: .setColor(0xFFC300) .setDescription("p!poll to initiate a simple yes or
const discord = require('discord.js'); // Import the discord.js module
var client = new discord.Client(); // Create an instance of a Discord client 我在顶部声明了discord,但仍然得到一个引用错误,我是不是遗漏了什么非常明显的东西?avatar
,我尝试了一些我可以在网上找到的rips,有些包括尝试重新安装node.js和discord.js,还有一些提到了一种不同的方法,比如使用NewMessageEmbed(),但是他们都没有为我工作过,如果有一个比我更有经验的人能提供一个解决方案的话, const newEmbed = new Discord.MessageEmbed()
.setColorMake sure to follow the
在使用本教程中的基本方法时,“ping”命令有效,但在尝试使用此方法后,命令提示符在尝试运行它时抛出此错误:client.commands = new Discord.Collection();^
at Object.<anonymous> (C:\Users\name\OneDrive\Desktop\VSC ←[90m at Module.和d