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β€’8mo 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β€’8mo ago
yea and that is invalid thats undefined
kin.ts
kin.tsβ€’8mo ago
if you didn't save the token in the env, pass it directly in the client.login()
mallusrgreat
mallusrgreatβ€’8mo 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β€’8mo ago
read the linked guide
!         π’πˆπƒ 𝐎𝐏  β˜œβ™‘β˜ž
Make a new file name process.env and add ther token it is right ? @mallusrgreat
mallusrgreat
mallusrgreatβ€’8mo ago
... did you read the guide
!         π’πˆπƒ 𝐎𝐏  β˜œβ™‘β˜ž
I read but I can't understand
mallusrgreat
mallusrgreatβ€’8mo 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 β„’β€’8mo ago
fix the error mainPrefix is not defined
darp
darpβ€’8mo ago
don't use bot-hosting.
Unknown User
Unknown Userβ€’8mo ago
Message Not Public
Sign In & Join Server To View
SteveRixxy
SteveRixxyβ€’8mo ago
@! π’πˆπƒ 𝐎𝐏 β˜œβ™‘β˜ž did u slove it
Unknown User
Unknown Userβ€’8mo ago
Message Not Public
Sign In & Join Server To View
SteveRixxy
SteveRixxyβ€’8mo 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β€’8mo ago
Message Not Public
Sign In & Join Server To View
SteveRixxy
SteveRixxyβ€’8mo 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β€’8mo ago
Message Not Public
Sign In & Join Server To View
SteveRixxy
SteveRixxyβ€’8mo ago
Ok sorry
Unknown User
Unknown Userβ€’8mo ago
Message Not Public
Sign In & Join Server To View
SteveRixxy
SteveRixxyβ€’8mo 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β€’8mo ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown Userβ€’8mo ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown Userβ€’8mo ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docsβ€’8mo 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β€’8mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server