#[CLIENT_MISSING_INTENTS] Valid intents must be provided for the Client.

1 messages · Page 1 of 1 (latest)

fringe mango
#

I have this Code:

#
const Discord = require('discord.js');
const client = new Discord.Client();

client.login(token)
tidal torrent
#

u need to add intents

#

it became required in discordjs v13

fringe mango
#

Hasn't it worked so far?

tidal torrent
#

ok lemem send a link

fringe mango
#

Or is that because of version 13?

tidal torrent
#

oh

polar dirge
tidal torrent
#

its v13 guide

#

i couldn't find it lol

fringe mango
wooden zealot
#

so u can choose

tidal torrent
#

they make sure ur bot onlly receives notice of the required actions

#

therefore increasing performance

polar dirge
tidal torrent
#

the bots only recieve actions that they need

#

as well

fringe mango
#

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

proven cave
#

hello