Common Errors
Disallowed Intents
If you are getting this error when starting the bot, you have to enable all the privileged gateway intents in your discord developer portal.
click on your application then on the left sidebar click Bot
. Scroll down and enable the intents as shown in the image below.
An invalid token was provided
Make sure that you renamed your .env.example
to .env
then fill it with the correct bot token, client ID and guild ID.
Could not locate the bindings file
This error is related to your node_modules
directory. To fix this issue, check your NodeJS version and avoid using NodeJS 19 since it can cause such issues sometimes.
It’s recommended to use the latest version of either NodeJS 18 or 20+, they should be more stable and work properly. After ensuring that, delete your node_modules
directory and run npm install
again to reinstall the dependencies, which should fix your issue.
Unknown Application
Double check your .env
file and ensure the client ID and guild ID are correct. This error mostly happens when your client ID is incorrect, please refer to this page to understand how to get the client ID.