#error

14 messages · Page 1 of 1 (latest)

fickle ivy
#

you just declare discord again

lilac mural
# fickle ivy you just declare discord again

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");
fickle ivy
#

1, what version are you even using as those intents aren't really right

#

Secondly, there's more to that code

fickle ivy
#

dont export your client like that

#

Is defintely an issue

#

And save ur code

lilac mural
#

ik but the bot has been used for a few months now and this just randomly happened

#

im using 13.7

fickle ivy
fickle ivy
shell jasperBOT
#

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.

lilac mural
#

oh fixed it