mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-23 21:54:58 +05:00
fix stats
This commit is contained in:
parent
8b005b4d06
commit
b26af17908
1 changed files with 1 additions and 3 deletions
|
@ -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"),
|
||||
|
|
Loading…
Reference in a new issue