Invalid Token has been provided / TOKEN_INVALID

You have one of the following issues with the bot token in your code: You have provided an invalid token in your code. Reset it on the Discord Developer Porta

Updated Jul 7, 2026

You have one of the following issues with the bot token in your code:

  1. You have provided an invalid token in your code. Reset it on the Discord Developer Portal, then paste the new token into your code.
  2. You are not loading the token correctly. If you are using a config.json file, follow the discord.js guide on how to load it. If you are using a .env file, make sure that you are using the dotenv module correctly. Check the package documentation or contact their support if needed.

This issue is unrelated to the hosting service. It originates from your code. The server runs what you upload to it, nothing more and nothing less.