How can i add all itents

const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMessages] });
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMessages] });
How can i add all itents to be like :
const client = new Client({ intents: allIntents });
const client = new Client({ intents: allIntents });
Without adding every single intent manualy
Solution:
Found the response :
const { Client, IntentsBitField } = require('discord.js');
const client = new Client({ intents: new IntentsBitField().add(3276799)});
const { Client, IntentsBitField } = require('discord.js');
const client = new Client({ intents: new IntentsBitField().add(3276799)});
...
Jump to solution
1 Reply
Solution
ox
ox17mo ago
Found the response :
const { Client, IntentsBitField } = require('discord.js');
const client = new Client({ intents: new IntentsBitField().add(3276799)});
const { Client, IntentsBitField } = require('discord.js');
const client = new Client({ intents: new IntentsBitField().add(3276799)});