aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-02-10 23:03:58 +0100
committerMinteck <contact@minteck.org>2022-02-10 23:03:58 +0100
commit479d8e692949877cbab10d72ef4a2c13e3ac1cdc (patch)
treec44359754cc504aade8ada3ffd34c66bd10b8721 /bot.js
parent33404fb707c2a88f505193a4c757e8b789dfa706 (diff)
downloadponyfind-479d8e692949877cbab10d72ef4a2c13e3ac1cdc.tar.gz
ponyfind-479d8e692949877cbab10d72ef4a2c13e3ac1cdc.tar.bz2
ponyfind-479d8e692949877cbab10d72ef4a2c13e3ac1cdc.zip
Fix: #1 was not working properly
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/bot.js b/bot.js
index 982208b..1a40058 100644
--- a/bot.js
+++ b/bot.js
@@ -15,7 +15,10 @@ if (!fs.existsSync("./reports")) fs.mkdirSync("./reports");
const rest = new REST({ version: '9' }).setToken(fs.readFileSync("./config/token." + (require('fs').existsSync("./beta") ? "beta" : "stable") + ".txt").toString());
const { Client, Intents, MessageActionRow, MessageButton, MessageSelectMenu, MessageEmbed } = require('discord.js');
-global.client = new Client({ intents: [Intents.FLAGS.GUILDS] });
+global.client = new Client({
+ partials: ['MESSAGE', 'CHANNEL'],
+ intents: ['DIRECT_MESSAGES', 'DIRECT_MESSAGE_REACTIONS', 'GUILD_MESSAGES', 'GUILD_MESSAGE_REACTIONS', 'GUILDS']
+});
const commandHandler = require('./handler/command');
const buttonHandler = require('./handler/button');