我开始学习 discord.js 但现在我正面临这个问题。我尝试了一些谷歌搜索,但无法修复它。
const Discord = require('discord.js');
// const Discord = require('discord.js');
// using Intents class
const client = new Discord.Client();
client.on('message', (msg) => {
// Send back a reply when the specific command has been written by a user.
if (msg.content === '!hello') {
msg.reply('Hello World!');
}
});
client.login('my_token');
这是我得到的错误: