mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-24 06:04:57 +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
|
* @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"),
|
||||||
|
|
Loading…
Reference in a new issue