📜  discordjs 13 TypeError 必须为客户端提供有效的意图. - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:06.297000             🧑  作者: Mango

代码示例1
const { Client, Intents } = require('discord.js');

const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });

//Change node version to 16.6 if you have AbortController error