Put token but say invalid

I put the token in first line in index.js but he say token invalid
No description
No description
34 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!
mallusrgreat
mallusrgreatβ€’6mo ago
yea and that is invalid thats undefined
kin.ts
kin.tsβ€’6mo ago
if you didn't save the token in the env, pass it directly in the client.login()
mallusrgreat
mallusrgreatβ€’6mo ago
@! π’πˆπƒ 𝐎𝐏 β˜œβ™‘β˜ž 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
mallusrgreat
mallusrgreatβ€’6mo ago
read the linked guide
!         π’πˆπƒ 𝐎𝐏  β˜œβ™‘β˜ž
Make a new file name process.env and add ther token it is right ? @mallusrgreat
mallusrgreat
mallusrgreatβ€’6mo ago
... did you read the guide
!         π’πˆπƒ 𝐎𝐏  β˜œβ™‘β˜ž
I read but I can't understand
mallusrgreat
mallusrgreatβ€’6mo ago
dont ping me unless you fully read that section
!         π’πˆπƒ 𝐎𝐏  β˜œβ™‘β˜ž
Config.js empty not there token option Sry
!         π’πˆπƒ 𝐎𝐏  β˜œβ™‘β˜ž
How to fix .help type bot will be offline how to fix
Oreo β„’
Oreo β„’β€’6mo ago
fix the error mainPrefix is not defined
Want results from more Discord servers?
Add your server