client undefined
I got this code to emit a custom event in my database manager class :
It correctly logs the client in console but in my event class it logs undefined and I don't understand why
5 Replies
- 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 OPbecause you're passing in an object
so your 'squadronStats' will have a client property
players and client are undefined since they arent passed in
oh f
I feel so stupid
no worries
btw