0

I am curently updating my bot from djs 13 to 14, but i am having some problems with the intents, this is the intents code from V13 i had

let intents = new Discord.Intents(32767);
const client = new Discord.Client({
  autoReconnect: true,
  intents,
});
client.commands = new Discord.Collection();
client.aliases = new Discord.Collection();

and this is what i have in V14 now

import { Client, GatewayIntentBits } from "discord.js";
const client = new Client({
    intents: [
        GatewayIntentBits.Guilds,
        GatewayIntentBits.GuildMessages,
        GatewayIntentBits.MessageContent,
        GatewayIntentBits.GuildMembers,
    ],
});
client.commands = new Discord.Collection();
client.aliases = new Discord.Collection();

But i am unsucessfull to set the intents using the 32767 i had before, how can i implement that in the new code, i already googled but i am not succesfull to find it out

Finniedj
  • 11
  • 1

0 Answers0