forked from embee/woomy
start requesting only the intents we need
This commit is contained in:
parent
05b35fc207
commit
564814a3de
1 changed files with 8 additions and 1 deletions
9
index.js
9
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');
|
||||
|
|
Loading…
Reference in a new issue