start requesting only the intents we need

This commit is contained in:
Emily 2020-10-23 12:14:23 +11:00
parent 05b35fc207
commit 564814a3de

View file

@ -7,7 +7,14 @@ const { promisify } = require('util');
const readdir = promisify(require('fs').readdir); const readdir = promisify(require('fs').readdir);
const Enmap = require('enmap'); const Enmap = require('enmap');
const chalk = require('chalk'); const chalk = require('chalk');
const client = new Discord.Client({ ws: { intents: Discord.Intents.ALL }}); const client = new Discord.Client({ ws: { intents: [
'GUILDS',
'GUILD_MEMBERS',
'GUILD_EMOJIS',
'GUILD_VOICE_STATES',
'GUILD_MESSAGES',
'DIRECT_MESSAGES'
]}});
try { try {
client.config = require('./config'); client.config = require('./config');