Commit 9eb30052 authored by Loïc Bersier's avatar Loïc Bersier 😎
Browse files

intents, fetch all members


Signed-off-by: Loïc Bersier's avatarloicbersier <loic.bersier1@gmail.com>
parent 145edfac
......@@ -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, {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment