Sapphire - Imagine a framework
Sapphire - Imagine a framework

discordjs-support

Root Question Message

ox
ox2/12/2023
How can i add all itents

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 });

Without adding every single intent manualy

Solution Message

ox
ox2/12/2023
Found the response :
const { Client, IntentsBitField } = require('discord.js');
const client = new Client({ intents: new IntentsBitField().add(3276799)});
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy