CalypsoBot
CalypsoBot copied to clipboard
Fix the intents in app.js
USE THIS CODE INSTEAD FOR app.js
:
const Client = require('./src/Client.js');
const { Intents } = require('discord.js');
global.__basedir = __dirname;
// Client setup
const intents = new Intents();
intents.add(
'GUILDS',
'GUILD_VOICE_STATES',
'GUILD_MESSAGES',
'GUILD_MESSAGE_REACTIONS'
);
const client = new Client(config, { ws: { intents: intents } });
// Initialize client
function init() {
client.loadEvents('./src/events');
client.loadCommands('./src/commands');
client.loadTopics('./data/trivia');
client.login(client.token);
}
init();
process.on('unhandledRejection', err => client.logger.error(err));```
Basically just remove:
'GUILD_PRESENCES',
and:
'GUILD_MEMBERS',
For some reason, they are not working with Discord right now.