Add Intent bit for GuildMembers and GuildPresences

Need this for parseMention to work
This commit is contained in:
SileNce5k 2024-10-17 21:31:37 +02:00
parent 278cde8e5d
commit 2005e61416
Signed by: SileNce
GPG key ID: B0A142BB4291B204

View file

@ -21,7 +21,7 @@ const createLastfmTable = require('./server/createLastfmTable');
createLastfmTable(); createLastfmTable();
checkAndConvertJSONToSQL(); checkAndConvertJSONToSQL();
const { Collection, Client, GatewayIntentBits, Partials } = require('discord.js'); 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 { const {
globalPrefix, globalPrefix,
token, token,