From 2005e6141634d58998ae9820702c34e4b3f1c786 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Thu, 17 Oct 2024 21:31:37 +0200 Subject: [PATCH] Add Intent bit for GuildMembers and GuildPresences Need this for parseMention to work --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index a4f7193..eacf2a5 100644 --- a/server.js +++ b/server.js @@ -21,7 +21,7 @@ const createLastfmTable = require('./server/createLastfmTable'); createLastfmTable(); checkAndConvertJSONToSQL(); const { Collection, Client, GatewayIntentBits, Partials } = require('discord.js'); -const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent], partials: [Partials.Channel] }); +const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildPresences], partials: [Partials.Channel] }); const { globalPrefix, token,