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
1 changed files with 8 additions and 1 deletions

View File

@ -7,7 +7,14 @@ const { promisify } = require('util');
const readdir = promisify(require('fs').readdir);
const Enmap = require('enmap');
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 {
client.config = require('./config');