0

I have been really frustrated about this new Discord.js update. It includes importing Intents, and I have no idea how to do that. Please can someone tell me a step by step guide?

I have tried enabling all Intents from the Discord Developer Portal, still doesn't work. I would be very grateful if someone could help me! :)

JJarch
  • 11
  • 1

2 Answers2

1

This is straight from the discord.js V13 Docs

e.g.

const { Client, Intents } = require('discord.js');
const myIntents = new Intents();
myIntents.add('GUILD_PRESENCES', 'GUILD_MEMBERS');

const client = new Client({ ws: { intents: myIntents } });

read more here

Christoph Blüm
  • 925
  • 1
  • 9
  • 23
0

You can find this from the discordjs docs > https://discordjs.guide/popular-topics/intents.html#enabling-intents

const { Client, Intents, Message } = require('discord.js')
const client = new Client({
     intents: 32767,
});

32767 Means all intents. If you want to use the intents you want to use it is in the docs.

Kief
  • 61
  • 1
  • 11