commandArray is not defined but it is defined.
It is defined at line 14. But it claims line 30 commandArray is not defined. Any help?
11 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!...no it isnt?
I dont see where you define it for line 14 either
oh nvm
Its a scoping issue
The definition is inside your for loop
How would I change that?
Im not sure why it's attached to your client in the first place
Im going off of yt video from Fusion 😓
I may have done it wrong
Cant say, we don't really follow or support third party youtube tutorials
But yes, its possible that it doesn't fit with something else
I see on the guild that it doesnt have
version: "9"
for the set token do i NEED that?Nope, latest version is 10 anyway
And it will default to that if you dont specify
ah ok
so like when its specified (like in my code) it will use that version but if nothing is there it does the latest?
yeah