#getting - token invalid
25 messages · Page 1 of 1 (latest)
• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.
How do you provide the token? Do you pass it as client.login("…") directly or do you use dotenv or a config.json or …?
how do you set the env values?
like blue out the token part, just show the name of the variables
Suggestion for @echo leaf:
Creating Your Bot: Using environment variables
read more
follow this
yea that
I'm using not mine script. Its quite simple... But i noticed, that script build for 18 version of node.js and i got 16.9... maybe that's reason
I'm newbie in js
Okie. I used config.json for token.
Getting now another error
Here is code for my bot -
https://replit.com/@AlexanderHoff2/WilkiBot#index.js
But there no config.json
Ok, seems intent was missing in dev portal. Now i almost started it
Now something wrong with wolvesville api?
You just havent defined fetch
Ehm.... I wish to know what you mean.. that script working fine with others folks... What can be wrong?
I got node.js 16.9 on host and they can't update it currently. I think that fetch thing came in 17 as experimental and in 18 in full....
I done install node-fetch
Then import fetch from "node-fetch";
But got error something like import...
This isnt discord.js related