My code is ClientMissingIntents for a discord bot

Question:
How do I fix it?
Repl link: https://replit.com/@MasonSilvers/INRP-Moderation-Manager?s=app

Hello and welcome to Ask @MasonSilvers!

All discord bots now require Intents to be passed to them when created, for example:

const client = new Discord.Client({intents: 32767});

As a note, you should not use this in production, as this states that your bot requires all permissions/intents, but it could be used while you’re setting up your bot.
Here is a link to an intent calculator, so you don’t have to use all of the intents.

2 Likes

Now it shows MODULE_NOT_FOUND and I have an index.