我开始学习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');
我遇到的错误如下: