the bot is not sending message when member joins

i've tried to making a event that when a user joins the server the bot will send a message but it doesnt seem to be doing anything or give any error. i have tried to console log to see if it detects the member joining but it also doesnt do that too
6 Replies
d.js toolkit
d.js toolkit7mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Yido
YidoOP7mo ago
client.on('guildMemberAdd', member => {
const channel = member.guild.channels.cache.get('1138787209735045191');
console.log("here")
channel.send("text-here!")
});
client.on('guildMemberAdd', member => {
const channel = member.guild.channels.cache.get('1138787209735045191');
console.log("here")
channel.send("text-here!")
});
chewie
chewie7mo ago
You need the GuildMembers intent
Yido
YidoOP7mo ago
is there a way to get all the intents, im kinda new to discord.js i dont know how to that 😔
d.js docs
d.js docs7mo ago
:guide: Popular Topics: Gateway Intents read more
Yido
YidoOP7mo ago
thank you
Want results from more Discord servers?
Add your server