From e831a0eb761685ff29781bf6fbdd2df256104103 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Thu, 13 Oct 2022 00:16:39 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D0=B0=D1=8F=20=D1=81=D0=BE=D1=80=D1=82=D0=B8=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=BA=D0=B0=20=D1=81=D0=B5=D1=80=D0=B2=D0=B5=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Owner/servers.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/commands/Owner/servers.js b/commands/Owner/servers.js index f880f15f..944474bb 100644 --- a/commands/Owner/servers.js +++ b/commands/Owner/servers.js @@ -151,7 +151,7 @@ function generateServersEmbeds(interaction, servers) { let k = 10; for (let i = 0; i < servers.size; i += 10) { - const current = servers.map(g => g).slice(i, k).sort((a, b) => b.memberCount - a.memberCount); + const current = servers.sort((a, b) => b.memberCount - a.memberCount).map(g => g).slice(i, k); let j = i; k += 10; @@ -171,12 +171,4 @@ function generateServersEmbeds(interaction, servers) { return embeds; } -// `${interaction.translate("common:SERVERS")}: ${interaction.client.guilds.cache.size}\n\n` + -// interaction.client.guilds.cache -// .sort((a, b) => b.memberCount - a.memberCount) -// .map(g => g) -// .map((g, i) => `${i + 1}. ${g.name} | ${g.memberCount} ${interaction.client.getNoun(g.memberCount, interaction.translate("misc:NOUNS:MEMBERS:1"), interaction.translate("misc:NOUNS:MEMBERS:2"), interaction.translate("misc:NOUNS:MEMBERS:5"))}`) -// .slice(i, k) -// .join("\n") - module.exports = Servers; \ No newline at end of file