syntax error

how do i fix this?
No description
21 Replies
d.js toolkit
d.js toolkit•6mo 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!
coltbando
coltbandoOP•6mo ago
@duck can you help me please
Linix
Linix•6mo ago
Can you show us the code where the error was created?
Kevinnnn
Kevinnnn•6mo ago
pinging random people that aren't already in this thread isn't gonna help its a SyntaxError, you have a problem with how you coded your code use a linter
d.js docs
d.js docs•6mo ago
:guide: Installations & Preparations: Setting up a linter read more
Zach
Zach•6mo ago
Why is it called a linter Oh that actually makes so much sense 🫡
coltbando
coltbandoOP•6mo ago
but like i didnt code it wrong im watching a video
Kevinnnn
Kevinnnn•6mo ago
I’ll be frank, if you’re watching a video you’re more than likely to make a mistake
coltbando
coltbandoOP•6mo ago
No description
wen
wen•6mo ago
show code put ,
coltbando
coltbandoOP•6mo ago
on all 3? or just the syntax error
Kevinnnn
Kevinnnn•6mo ago
?? You need to separate values in the array
coltbando
coltbandoOP•6mo ago
oops
Kevinnnn
Kevinnnn•6mo ago
it isn’t going to assume you want separate values because you put a space in between them, you need a , between values in an array
coltbando
coltbandoOP•6mo ago
whats the command to start the bot? node .?
wen
wen•6mo ago
depends on your filesystem for u it should be node src/index.js or if u want to use node . go to the package-lock.json file and change the entry point
coltbando
coltbandoOP•6mo ago
i got it the bots online thank you sorry lowk new to this its alot to learn
wen
wen•6mo ago
its ok but i recommend learning basics of js before getting into djs
coltbando
coltbandoOP•6mo ago
i know python and i mean html... but its not really a coding langauge
Unknown User
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Retro
Retro•6mo ago
then use a python library. highly recommend against making a discord bot for your first ever javascript project
Want results from more Discord servers?
Add your server