From 564814a3de17b2281d560121b1fa99ecbc462ee4 Mon Sep 17 00:00:00 2001 From: Emily J Date: Fri, 23 Oct 2020 12:14:23 +1100 Subject: [PATCH] start requesting only the intents we need --- index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 21f8621..2dc87f5 100644 --- a/index.js +++ b/index.js @@ -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');