interaction is not defined
I know this sound weird/retarded but hear me out, So I am creating a message.js (kinda) for my bot where I can use this function to reply with an embed without having to define it from every single file with something like this
9 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 OPinteraction is not defined
I know but how do I define it...
by defining it?
pass it with the function
Like this?
sure
@-Carlos👑 OH it worked Tysm
np
Solution:
- In message.js
- In your desired file