code problem

i have this whole index file when i do a node index.js
14 Replies
d.js toolkit
d.js toolkit3mo 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.OP3mo 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
Amgelo3mo ago
not a djs error
!Mazen.
!Mazen.OP3mo ago
really ?
d.js docs
d.js docs3mo ago
- ReferenceError: "x" is not defined: learn more - TypeError: Cannot read properties of undefined/null (reading "x"): learn more
!Mazen.
!Mazen.OP3mo ago
so what
Amgelo
Amgelo3mo ago
check the tag it's a javascript error
!Mazen.
!Mazen.OP3mo ago
so how can i solve it
Amgelo
Amgelo3mo ago
also, that code is extremely messy, are you just copying from somewhere?
!Mazen.
!Mazen.OP3mo ago
no my friend give it to me
Amgelo
Amgelo3mo ago
you have tons of whitespace, wrong indentation, a bunch of unnecessary listeners
!Mazen.
!Mazen.OP3mo ago
can you help me with it
Amgelo
Amgelo3mo ago
well you should ask your friend to fix it #how-to-get-help we expect basic js understanding
!Mazen.
!Mazen.OP3mo ago
ok ill try

Did you find this page helpful?