#Help
1 messages · Page 1 of 1 (latest)
This is my code
and its giving me this error:
Uncaught TypeError [CLIENT_MISSING_INTENTS]: Valid intents must be provided for the Client.
read the documents
MESSAGE_REACTION_ADD
this is looking helpful...
that is an intent you might need
@pastel creekFirst or second link
where do i add it
can you tell the error free code?
you need to learn basic javascript and how to read documents
first
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