Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

62
Views
discord.js guildMemberAdded not firing

I'm trying to make it so when a user joins, the bot sends a message in a certain channel. I saw that you needed to enable some things in the developer portal, so I did that but it still doesn't run when a user joins, I tried printing when the user joins but it still wont do anything.

client.on('guildMemberAdd', joinMember => {
    console.log("a")
    const joinChannel = client.channels.cache.find(channel => channel.name === 'logs')
    let joinEmbed = {
        title : `Welcome to ${client.guild.name}, @${joinMember.tag}`,
        color : embedColor
    }
    joinChannel.send({embeds : [joinEmbed]})
})
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Guild member related events are privileged intents.

It means that you have to turn it on at your bot page.

enter image description here

User presence related events are also privileged, and message content related events are also privileged after April 30.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!