code problem

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