Server available is false most of the time.

I get available == false about 4/5 times when doing this request.
function getServers(client) {
return client.guilds.cache;
}

const servers = getServers(client);

servers.forEach(server => {
if(!server.available) {
console.log('Server not available');
return;
}
});
function getServers(client) {
return client.guilds.cache;
}

const servers = getServers(client);

servers.forEach(server => {
if(!server.available) {
console.log('Server not available');
return;
}
});
Could this be a login issue maybe? Also worth noting, is that I'm running an older version. 12.x something. I'd rather not update if possible.
3 Replies
d.js toolkit
d.js toolkit8mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Zeroknights
Zeroknights8mo ago
You have to update, v12 is no longer being supported
CheeseGroveCam
CheeseGroveCamOP8mo ago
Unlucky I guess.
Want results from more Discord servers?
Add your server