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
*/
async execute(client, interaction) {
const hiddenGuildMembersCount = client.guilds.cache.get("568120814776614924").memberCount;
const servers = client.guilds.cache.size - 1;
const servers = client.guilds.cache.size;
let users = 0;
client.guilds.cache.forEach(g => {
users += g.memberCount;
});
users = users - hiddenGuildMembersCount;
const embed = client.embed({
author: interaction.translate("common:STATS"),