Bot not seeing all users in v14
I'm trying to update my bot to d.js v14 and I am running into a problem where the bot does not cache all users of the guilds it is in.
For instance, first image is from my d.js v12 Bot, and second image is from my d.js v14 Bot.
The code I use for the login message is:
I also enables the Priviledged Gateway Intents on the Developer Portal and I am creating a client with said Intents
For instance, first image is from my d.js v12 Bot, and second image is from my d.js v14 Bot.
The code I use for the login message is:
//Client login and activity
client.once(Events.ClientReady, client => {
globals.id = client.user.id;
globals.avatar = client.user.avatar;
console.log("Discord.js v14.11.0");
console.log(Login successful!\n${client.user.username} is now online! Prefix is set to ${prefix}, Version: ${version});
console.log(Bot has started, with ${client.users.cache.size} users, in ${client.channels.cache.size} channels of ${client.guilds.cache.size} guilds.);
setactivity(client)
setInterval(() => {
setactivity(client);
}, 30000);
});I also enables the Priviledged Gateway Intents on the Developer Portal and I am creating a client with said Intents
const client = new Client({
intents: [
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.Guilds,
GatewayIntentBits.MessageContent,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.DirectMessageReactions,
],
partials: [
Partials.Channel,
Partials.Message
]
});

