ReferenceError: interaction is not defined at Object.execute (/home/container/commands/recru.js:
My code :
23 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!My code
I can't find how to define interaction
interaction .awaitModalSubmit({filte1r, time: 30_000})where is interaction defined there is no interaction defined here did you mean to put it inside the collect event
?
where ?
yse but
what should I do to define it
Move it inside the scope of where it's defined?
but isn't defined
Show me where it's defined
is not edfined
It is, in your collector
And how
How what?
How define this
You've already defined
interaction
, but you are trying to access it outside of the scope of where you defined it, you just need to move your code inside of the scope where it's already definedBut he tells me it's not defined
Because you're trying to access it outside of the scope of where you've defined it