我正在尝试安装discord.js,但是它不能工作,我得到了这些错误: npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\46723\AppData\Roaming\npm-cache\_logs\2020-
我正在使用Discord.js和ytdl开发一个不和谐的机器人。但是,每当我输入?play并执行play命令时,就会引发此错误:
(节点:15840) UnhandledPromiseRejectionWarning: TypeError ERR_INVALID_ARG_TYPE:"url“参数必须是字符串类型。接收类型未定义在Bot\node_modules\ytdl-core\lib\util.js:273:22) at URL.parse(url.js:154:11) at Object.urlParse at Object.exports.getURLVideoID (C:
你好,我对discord.js中的别名有问题,别名不起作用,我不知道为什么?
client.on('message', message =>{
// Exit when the message from the bot
if (!message.content.startsWith(prefix) || message.author.bot) return;
const args = message.content.slice(prefix.length).trim().split(/ +/);
const commandName =
我试着用Discord.js v12让所有的会员都加入一个协会。这就是我所拥有的:
const list = client.guilds.cache.get("720352141709148200");
list.members.forEach(member => {
//do stuff with guild memebrs here
}
我看过这个,但我认为它已经过时了,因为它会抛出一个错误,说明guilds是未定义的。这是我在上面修改的ish代码中遇到的错误:
TypeError: list.members.forEach is