functions across modules returning undefined
i have a function in another script (being imported):
being imported and ran from:
the log in the 1st one logs fine, the log in the 2nd one logs undefined
before the bot asks nodejs v19.0.0 discord.js version 14.13.0
1 Reply
- 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 OP