Errors

On this Page you can find list of usual Errors and ways on how to fix them

Disallowed Intents

This error happens when you don't enable required Gateway Intents on Discord Developer Portal.

How to fix: Visit Bot Application Setup Page, and follow steps 2 & 3.

Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted.

node:events

This error happens when you're using unsupported NodeJS Version (Older than 16.9).

How to fix: Visit Dependencies Page, and follow step 1 (1.2) - Only if you're hosting it on Linux Server, if you've purchased Server from Hosting, then you have to contact them on how to change NodeJS Version.

Error: Cannot find module 'node:events'

The module was compiled against..

This error happens when you're use one NodeJS Version to install node_modules and then start bot with some other.

How to fix: Delete node_modules folder and use the correct version to reinstall modules.

Error: The module '...'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 83. This version of Node.js requires
NODE_MODULE_VERSION 102. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).

Error: Cannot find module '...'

This error happens when you don't have module(s) installed.

How to fix: If you're hosting bot on Linux machine you can follow Linux Installation Setup Guide, if you're hosting on Pterodactyl or other panel, you'll probably just have to Start Bot.

Error: Cannot find module '...'
...
code: 'MODULE_NOT_FOUND'

Supplied roles is not a Role.

This error happens when you put invalid Role ID/Name into Config Field.

How to fix: Try to find the most recent changes you did to some config field which has to do with Role(s) ID/Name.

TypeError [InvalidType]: Supplied roles is not a Role, Snowflake 
or Array or Collection of Roles or Snowflakes.

Invalid OAuth2 redirect_uri

This error happens when you didn't setup Redirect URL on Discord Developer Portal properly (or didn't at all) or you didn't specify the it right in config.yml.

How to fix: Make sure that you followed the right format for URL. URL must start with https:// or http:// (depending on your hosting & setup), after that should be your domain/IP & at the end there should be :PORT (PORT being port config.yml field). When adding URL Redirect on Discord Developer Portal you also have to add /callback to the end of URL, while URL in config should be without it at the end.

config.yml URL field Examples

https://yourdomain.com:3003
http://123.45.675.104:3003
https://yourdomain.com (when you setup domain yourself so domain is automatically included)

Discord Developer Portal URL Redirect Examples

https://yourdomain.com:3003/callback
http://123.45.675.104:3003/callback
https://yourdomain.com/callback (when you setup domain yourself so domain is automatically included)

Last updated