diff options
author | Minteck <contact@minteck.org> | 2022-02-10 23:03:58 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-02-10 23:03:58 +0100 |
commit | 479d8e692949877cbab10d72ef4a2c13e3ac1cdc (patch) | |
tree | c44359754cc504aade8ada3ffd34c66bd10b8721 /bot.js | |
parent | 33404fb707c2a88f505193a4c757e8b789dfa706 (diff) | |
download | ponyfind-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.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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'); |