Search
Get Started
d-I❄
discord.js - Imagine ❄
•
3y ago
계정 버림
Error [TokenInvalid]: An invalid token was provided.
const
{
TOKEN
}
=
require
(
"./config.json"
)
client.
login
(
TOKEN
)
const
{
TOKEN
}
=
require
(
"./config.json"
)
client.
login
(
TOKEN
)
I JUST DONT GET IT why this error has been occurred
;
I put on the right TOKEN But it still don
't work
discord.js - Imagine ❄
Join
Support server for discord.js, a Node.js module to interact with Discord's apps API.
58,353
Members
View on Discord
Was this page helpful?
Yes
No
계
계정 버림
```js const {TOKEN} = require("./config.json") client.login(TOKEN) ``` I JUST ...
<
</> Idris
•
2/6/23, 4:26 PM
계
계정 버림
OP
•
2/6/23, 4:27 PM
The path is right
<
</> Idris
`console.log(TOKEN)`
계
계정 버림
OP
•
2/6/23, 4:32 PM
계
계정 버림
Click to see attachment
<
</> Idris
•
2/6/23, 4:33 PM
yeah so the error is correct
계
계정 버림
OP
•
2/6/23, 4:33 PM
why
?
?
<
</> Idris
•
2/6/23, 4:33 PM
wdym
"why
"
?
<
</> Idris
•
2/6/23, 4:34 PM
you
’re providing Korean characters
(I think
) instead of a token
계
계정 버림
OP
•
2/6/23, 4:35 PM
Noo
계
계정 버림
OP
•
2/6/23, 4:35 PM
I only put English characters
<
</> Idris
•
2/6/23, 4:35 PM
you don
’t have to pass english characters too lol
<
</> Idris
•
2/6/23, 4:35 PM
just a token
계
계정 버림
Click to see attachment
계
계정 버림
OP
•
2/6/23, 4:36 PM
hmm In this pic
's above log is the token
계
계정 버림
OP
•
2/6/23, 4:38 PM
and idkw the error is occurred
계
계정 버림
and idkw the error is occurred
<
</> Idris
•
2/6/23, 4:42 PM
the line just after the green one
?
<
</> Idris
the line just after the green one?
계
계정 버림
OP
•
2/6/23, 4:54 PM
yeah
Original message was deleted
<
</> Idris
•
2/6/23, 4:54 PM
@apenrl
^
Original message was deleted
계
계정 버림
OP
•
2/6/23, 4:55 PM
oh I see
계
계정 버림
OP
•
2/6/23, 4:55 PM
thank u for answer
console.log(TOKEN)
console.log(TOKEN)