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β€’10mo 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β€’10mo ago
yea and that is invalid thats undefined
kin.ts
kin.tsβ€’10mo ago
if you didn't save the token in the env, pass it directly in the client.login()
mallusrgreat
mallusrgreatβ€’10mo 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β€’10mo ago
read the linked guide
!         π’πˆπƒ 𝐎𝐏  β˜œβ™‘β˜ž
Make a new file name process.env and add ther token it is right ? @mallusrgreat
mallusrgreat
mallusrgreatβ€’10mo ago
... did you read the guide
!         π’πˆπƒ 𝐎𝐏  β˜œβ™‘β˜ž
I read but I can't understand
mallusrgreat
mallusrgreatβ€’10mo 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 β„’β€’10mo ago
fix the error mainPrefix is not defined
darp
darpβ€’10mo ago
don't use bot-hosting.
Unknown User
Unknown Userβ€’10mo ago
Message Not Public
Sign In & Join Server To View
SteveRixxy
SteveRixxyβ€’10mo ago
@! π’πˆπƒ 𝐎𝐏 β˜œβ™‘β˜ž did u slove it
Unknown User
Unknown Userβ€’10mo ago
Message Not Public
Sign In & Join Server To View
SteveRixxy
SteveRixxyβ€’10mo ago
If it says invalid token Simply head over to the discord developer website and reset your bots token and replace it with the old one and try run it again If not work the first time it could be a problem with the dev protail so try it atleast twice
Unknown User
Unknown Userβ€’10mo ago
Message Not Public
Sign In & Join Server To View
SteveRixxy
SteveRixxyβ€’10mo ago
Oh ok sorry @JΓ΄ πŸŒˆπŸ¦„ can u help me the other guy is just rude well he says he not but I think he is #πŸš¨γƒ»Unhandled promise rejection
Unknown User
Unknown Userβ€’10mo ago
Message Not Public
Sign In & Join Server To View
SteveRixxy
SteveRixxyβ€’10mo ago
Ok sorry
Unknown User
Unknown Userβ€’10mo ago
Message Not Public
Sign In & Join Server To View
SteveRixxy
SteveRixxyβ€’10mo ago
So sorry bro Oh if ur useing axocoder owo bot that is broke long time ago I know that bc he is my friend and I'm mod on his server
!         π’πˆπƒ 𝐎𝐏  β˜œβ™‘β˜ž
No No that only server name
Unknown User
Unknown Userβ€’10mo ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown Userβ€’10mo ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown Userβ€’10mo ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docsβ€’10mo ago
Tag suggestion for @! π’πˆπƒ 𝐎𝐏 β˜œβ™‘β˜ž: - ReferenceError: "x" is not defined: learn more - TypeError: Cannot read properties of undefined/null (reading "x"): learn more
Unknown User
Unknown Userβ€’10mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server