CalypsoBot icon indicating copy to clipboard operation
CalypsoBot copied to clipboard

Fix the intents in app.js

Open UnluckyFroggyAlt opened this issue 3 years ago • 1 comments

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));```

UnluckyFroggyAlt avatar Feb 11 '21 20:02 UnluckyFroggyAlt

Basically just remove: 'GUILD_PRESENCES', and: 'GUILD_MEMBERS', For some reason, they are not working with Discord right now.

UnluckyFroggyAlt avatar Feb 11 '21 20:02 UnluckyFroggyAlt