From 265b117d5b1c22ad79ea1ebe591efae6af3f0724 Mon Sep 17 00:00:00 2001 From: Louis Mazin Date: Fri, 16 Jan 2026 10:00:12 +0100 Subject: [PATCH] nice --- index.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index e7cacbc..9396df9 100644 --- a/index.js +++ b/index.js @@ -5,19 +5,19 @@ const path = require('node:path'); const deploy = require('./deploy_command.js') const update = require('./displayer.js'); const clean = require('./cleaner.js'); -const { Client, Intents, Collection, Events, Partials } = require('discord.js'); +const { Client, GatewayIntentBits, Collection, Events, Partials } = require('discord.js'); const { initDatabase, createTables, cleanExpiredCodes } = require('./database.js'); const { startConsoleMonitoring } = require('./consoleMonitor.js'); const client = new Client({ intents: [ - Intents.FLAGS.GUILD_MEMBERS, - Intents.FLAGS.GUILD_MESSAGES, - Intents.FLAGS.GUILD_MESSAGE_REACTIONS, - Intents.FLAGS.MESSAGE_CONTENT, - Intents.FLAGS.GUILDS + GatewayIntentBits.GuildMembers, + GatewayIntentBits.GuildMessages, + GatewayIntentBits.GuildMessageReactions, + GatewayIntentBits.MessageContent, + GatewayIntentBits.Guilds ], - partials: [Partials.MESSAGE, Partials.CHANNEL, Partials.REACTION], + partials: [Partials.Message, Partials.Channel, Partials.Reaction], }); const headers = {