小编New*_*wJs的帖子

如何修复 CLIENT_MISSING_INTENTS 错误?

我开始学习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');
Run Code Online (Sandbox Code Playgroud)

这是我收到的错误:

在此输入图像描述

javascript node.js discord discord.js

26
推荐指数
1
解决办法
11万
查看次数

标签 统计

discord ×1

discord.js ×1

javascript ×1

node.js ×1