#[CLIENT_MISSING_INTENTS] Valid intents must be provided for the Client.
1 messages · Page 1 of 1 (latest)
const Discord = require('discord.js');
const client = new Discord.Client();
client.login(token)
Hasn't it worked so far?
ok lemem send a link
Or is that because of version 13?
yes v13 requires intents
Why?
so u can choose
intents r useful
they make sure ur bot onlly receives notice of the required actions
therefore increasing performance
so people can use intents only which they actually require
Now I have this code:
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
client.login(token)
Now comes, however
TypeError: Class extends value undefined is not a constructor or null
Hmm
After I commented all of my old codes, it works
hello