my bot don't see event "guildMemberAdd" why?

160 Views Asked by At

he don't view new member and don't write on console "nouveau membre"

Client.on("guildMemberAdd", (member, guild) => {
  console.log("nouveau membre");

})

1

There are 1 best solutions below

0
On BEST ANSWER

You need to have SERVER_MEMBERS_INTENT in order to receive the guildMemberAdd event.

If you have a verified bot then it needs whitelisting, if not then just go to your application and to the bot tab and toggle the server members intent