syntax error

how do i fix this?
No description
21 Replies
d.js toolkit
d.js toolkit•5mo 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•5mo ago
@duck can you help me please
Linix
Linix•5mo ago
Can you show us the code where the error was created?
Kevinnnn
Kevinnnn•5mo 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•5mo ago
:guide: Installations & Preparations: Setting up a linter read more
Zach
Zach•5mo ago
Why is it called a linter Oh that actually makes so much sense 🫡
coltbando
coltbandoOP•5mo ago
but like i didnt code it wrong im watching a video
Kevinnnn
Kevinnnn•5mo ago
I’ll be frank, if you’re watching a video you’re more than likely to make a mistake
coltbando
coltbandoOP•5mo ago
No description
wen
wen•5mo ago
show code put ,
coltbando
coltbandoOP•5mo ago
on all 3? or just the syntax error
Kevinnnn
Kevinnnn•5mo ago
?? You need to separate values in the array
coltbando
coltbandoOP•5mo ago
oops
Kevinnnn
Kevinnnn•5mo 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•5mo ago
whats the command to start the bot? node .?
wen
wen•5mo 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•5mo ago
i got it the bots online thank you sorry lowk new to this its alot to learn
wen
wen•5mo ago
its ok but i recommend learning basics of js before getting into djs
coltbando
coltbandoOP•5mo ago
i know python and i mean html... but its not really a coding langauge
Unknown User
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Retro
Retro•5mo 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