From 9eb300521165d748546c3fb0f54836ed540343c2 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Wed, 11 Nov 2020 01:55:04 +0100 Subject: [PATCH] intents, fetch all members Signed-off-by: loicbersier --- index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 367d99e1..5136a337 100644 --- a/index.js +++ b/index.js @@ -3,8 +3,12 @@ if (!fs.existsSync('./config.json')) { throw new Error('I could not find config.json, are you sure you have it?'); } const { AkairoClient, CommandHandler, InhibitorHandler, ListenerHandler } = require('discord-akairo'); +const { Intents } = require('discord.js'); const { token, prefix, ownerID } = require('./config.json'); +let intents = new Intents(Intents.ALL); +intents.remove('GUILD_PRESENCES'); + class hahaYesClient extends AkairoClient { constructor() { super({ @@ -17,8 +21,10 @@ class hahaYesClient extends AkairoClient { } } }, { - partials: ['MESSAGE', 'REACTION'], + partials: ['MESSAGE'], disableMentions: 'everyone', + ws: { intents: intents }, + fetchAllMembers: true }); this.commandHandler = new CommandHandler(this, {