#error
14 messages · Page 1 of 1 (latest)
i didnt though, this is the file its refrencing
const {
Client,
Collection
} = require("discord.js");
const Discord = require('discord.js');
var intents = Discord.Intents.FLAGS;
const client = new Client({
intents: [32767, intents.GUILDS, intents.GUILD_MESSAGES, intents.GUILD_MESSAGE_REACTIONS, intents.DIRECT_MESSAGES, intents.GUILD_MEMBERS, intents.GUILD_SCHEDULED_EVENTS],
partials: ['MESSAGE', 'CHANNEL', 'REACTION', 'GUILD_SCHEDULED_EVENT', 'USER']
});
module.exports = client;
// Global Variables
client.commands = new Collection();
client.slashCommands = new Collection();
client.config = require("./config.json");
1, what version are you even using as those intents aren't really right
Secondly, there's more to that code
dont export your client like that
Is defintely an issue
And save ur code
ik but the bot has been used for a few months now and this just randomly happened
im using 13.7
This
And this, fix ur intents
We highly recommend only specifying the intents you actually need.
• Note, that 98303, 32767 or whatever other magic number you read that represents "all intents", gets outdated as soon as new intents are introduced.
• The number will always represent the same set of intents, and will not include new ones. There is no magic "all intents" bit.
oh fixed it