From a0a674fcadf505799c3adf67289f14daf9a36b76 Mon Sep 17 00:00:00 2001 From: Tutur33 Date: Tue, 13 Feb 2024 21:41:47 +0100 Subject: [PATCH] intents --- main.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/main.js b/main.js index 1273163..df8a6dc 100644 --- a/main.js +++ b/main.js @@ -1,15 +1,7 @@ require('dotenv').config(); -const { Client, GatewayIntentBits } = require('discord.js'); - -const client = new Client({ - intents: [ - GatewayIntentBits.Guilds, - GatewayIntentBits.GuildMessages, - GatewayIntentBits.MessageContent, - GatewayIntentBits.GuildMembers, - ], -}); +const { Client, IntentsBitField, Collection } = require("discord.js"); +const client = new Client({intents: new IntentsBitField(3276799)}); client.on('ready', () => { console.log(`Logged in as ${client.user.tag}!`);