[英]Why does 'node .' always throw an error when I type it in cmd?
I just started with my first discord bot and I am really stuck with this problem.我刚开始使用我的第一个 discord 机器人,我真的被这个问题困住了。 Everytime I write 'node.'
每次我写“节点”。 it gives an error stating this 'throw new TypeError('CLIENT_MISSING_INTENTS');'can anybody tell me what I need to fix?
它给出了一个错误,说明这个'throw new TypeError('CLIENT_MISSING_INTENTS');'谁能告诉我我需要修复什么?
That's all the code I got:这就是我得到的所有代码:
const Discord = require('discord.js');
const bot = new Discord.Client();
const token = 'myToken';
bot.on('ready', () =>{
console.log('This bot is online!');
})
bot.login(token);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.