Put token but say invalid
I put the token in first line in index.js but he say token invalid
![No description](https://cdn.answeroverflow.com/1221476246328836136/Screenshot_2024-03-24-20-39-01-03_40deb401b9ffe8e1df2f1cc5ba480b12.jpg)
![No description](https://cdn.answeroverflow.com/1221476246656122890/IMG_20240324_204000.jpg)
34 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!yea and that is invalid
thats undefined
if you didn't save the token in the env, pass it directly in the
client.login()
It is fresh token
@! πππ ππ ββ‘β https://discordjs.guide/creating-your-bot/#using-dotenv
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
Can anyone solve this problem
I will be give access in panal
Please help me
read the linked guide
Make a new file name process.env and add ther token it is right ?
@mallusrgreat
...
did you read the guide
I read but I can't understand
dont ping me unless you fully read that section
Config.js empty not there token option
Sry
![No description](https://cdn.answeroverflow.com/1221487732107509791/image0.jpg)
How to fix .help type bot will be offline how to fix
fix the error
mainPrefix is not defined