#Help

1 messages · Page 1 of 1 (latest)

crystal glen
#

This is my code

#

and its giving me this error:

#

Uncaught TypeError [CLIENT_MISSING_INTENTS]: Valid intents must be provided for the Client.

rich sonnet
#

give the valid intents

#

@crystal glen

crystal glen
#

how

#

I dont undetstand

#

pls help

pastel creek
#

look at the tag i sent you

#

it has how to add intents

rich sonnet
crystal glen
#

MESSAGE_REACTION_ADD
this is looking helpful...

rich sonnet
#

that is an intent you might need

crystal glen
#

@pastel creekFirst or second link

crystal glen
#

can you tell the error free code?

rich sonnet
#

you need to learn basic javascript and how to read documents

pastel creek
crystal glen
#

ok

#

@rich sonnetThis is my code Now

const Discord = require('discord.js');
const client = new Discord.Client(({ intents: [MESSAGE_REACTION_ADD]}));

client.once('ready', () => {
    console.log('Ready!');
});
client.on('message', message => {
    if (message.content.startsWith('+1')) {
        message.react(':thumbsup:')
    }
});
client.login('token');
#

oops

#

sry i did it wrong