fix stats

This commit is contained in:
Jonny_Bro (Nikita) 2024-08-13 12:12:39 +05:00 committed by GitHub
parent 8b005b4d06
commit b26af17908
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,13 +27,11 @@ class Stats extends BaseCommand {
* @param {import("discord.js").ChatInputCommandInteraction} interaction * @param {import("discord.js").ChatInputCommandInteraction} interaction
*/ */
async execute(client, interaction) { async execute(client, interaction) {
const hiddenGuildMembersCount = client.guilds.cache.get("568120814776614924").memberCount; const servers = client.guilds.cache.size;
const servers = client.guilds.cache.size - 1;
let users = 0; let users = 0;
client.guilds.cache.forEach(g => { client.guilds.cache.forEach(g => {
users += g.memberCount; users += g.memberCount;
}); });
users = users - hiddenGuildMembersCount;
const embed = client.embed({ const embed = client.embed({
author: interaction.translate("common:STATS"), author: interaction.translate("common:STATS"),