Discord.js: Error [TOKEN_INVALID]: An invalid token was provided.

Created on 27 Apr 2020  Â·  3Comments  Â·  Source: discordjs/discord.js

Please describe the problem you are having in as much detail as possible:

Include a reproducible code sample here, if possible:

client.login('my_token');

Further details:

  • discord.js version: 12.2.0
  • Node.js version:v12.16.2
  • Operating system: MacOS
  • Priority this issue should have – please be realistic and elaborate if possible:
  • [] I have also tested the issue on latest master, commit hash:

For some reason I get this error on discord 12.

Error [TOKEN_INVALID]: An invalid token was provided.

But it's fine on discord 11.

invalid

Most helpful comment

Are you sure that you are providing a bot token and not a user token ?

All 3 comments

Are you sure that you are providing a bot token and not a user token ?

Support for user accounts was dropped in v12 as they do not respect Discord Terms of Service.
You must use a bot account token in order to use the library.

😋👢

Was this page helpful?
1 / 5 - 1 ratings

Related issues

tiritto picture tiritto  Â·  3Comments

PassTheMayo picture PassTheMayo  Â·  3Comments

LLamaFTL picture LLamaFTL  Â·  3Comments

iCrawl picture iCrawl  Â·  3Comments

Alipoodle picture Alipoodle  Â·  3Comments