GuildMemberAdd event not working

Idk why the event is not working, even tried doing a try catch but doesn't return anything in the console, and I even got Guilds and GuildMembers intents in the index.js. What might be wrong?
5 Replies
d.js toolkit
d.js toolkit12mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Shiro
Shiro12mo ago
It should, yeah It registers interactionCreate and ready events and it's the one from the official disordjs.guide
d.js docs
d.js docs12mo ago
If you aren't getting any errors, try to place console.log checkpoints throughout your code to find out where execution stops. - Once you do, log relevant values and if-conditions - More sophisticated debugging methods are breakpoints and runtime inspections: learn more
Shiro
Shiro12mo ago
it does, yeah
Shiro
Shiro12mo ago
did a console.log of the events in the forof loop alright nvm, found it I was missing an await before the Guild.findOne