code problem

i have this whole index file when i do a node index.js
14 Replies
d.js toolkit
d.js toolkit2mo ago
- 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 staff
!Mazen.
!Mazen.OP2mo ago
this is the error ReferenceError: rest is not defined at C:\Users\iimez\Desktop\Flame Sub\index.js:131:9 node version : v20.18.0 [email protected]
Amgelo
Amgelo2mo ago
not a djs error
!Mazen.
!Mazen.OP2mo ago
really ?
d.js docs
d.js docs2mo ago
- ReferenceError: "x" is not defined: learn more - TypeError: Cannot read properties of undefined/null (reading "x"): learn more
!Mazen.
!Mazen.OP2mo ago
so what
Amgelo
Amgelo2mo ago
check the tag it's a javascript error
!Mazen.
!Mazen.OP2mo ago
so how can i solve it
Amgelo
Amgelo2mo ago
also, that code is extremely messy, are you just copying from somewhere?
!Mazen.
!Mazen.OP2mo ago
no my friend give it to me
Amgelo
Amgelo2mo ago
you have tons of whitespace, wrong indentation, a bunch of unnecessary listeners
!Mazen.
!Mazen.OP2mo ago
can you help me with it
Amgelo
Amgelo2mo ago
well you should ask your friend to fix it #how-to-get-help we expect basic js understanding
!Mazen.
!Mazen.OP2mo ago
ok ill try
Want results from more Discord servers?
Add your server