21 Replies
- 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!@duck can you help me please
Can you show us the code where the error was created?
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 linterWhy is it called a linter
Oh that actually makes so much sense
🫡
but like i didnt code it wrong
im watching a video
I’ll be frank, if you’re watching a video you’re more than likely to make a mistake
show code
put ,
on all 3?
or just the syntax error
??
You need to separate values in the array
oops
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 arraywhats the command to start the bot?
node .?
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 pointi got it
the bots online
thank you
sorry lowk new to this
its alot to learn
its ok
but i recommend learning basics of js before getting into djs
i know python
and i mean html... but its not really a coding langauge
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
then use a python library. highly recommend against making a discord bot for your first ever javascript project