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
• 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.It should, yeah
It registers interactionCreate and ready events
and it's the one from the official disordjs.guide
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 moreit does, yeah
did a console.log of the events in the forof loop
alright nvm, found it
I was missing an await before the Guild.findOne