From 8b4d2cb744b7564621db459db188117bb2de9c00 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Tue, 6 Jun 2023 22:58:07 +0500 Subject: [PATCH] fix queues size --- commands/General/stats.js | 2 +- languages/en-US/general/stats.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/General/stats.js b/commands/General/stats.js index 6089dd4e..caccb3ac 100644 --- a/commands/General/stats.js +++ b/commands/General/stats.js @@ -76,7 +76,7 @@ class Stats extends BaseCommand { { name: client.customEmojis.voice + " " + interaction.translate("general/stats:MUSIC_TITLE"), value: interaction.translate("general/stats:MUSIC_CONTENT", { - count: `${client.player.queues.size} ${client.functions.getNoun(client.player.queues.size, interaction.translate("misc:NOUNS:SERVERS:1"), interaction.translate("misc:NOUNS:SERVERS:2"), interaction.translate("misc:NOUNS:SERVERS:5"))}`, + count: `${client.player.nodes.cache.size} ${client.functions.getNoun(client.player.nodes.cache.size, interaction.translate("misc:NOUNS:SERVERS:1"), interaction.translate("misc:NOUNS:SERVERS:2"), interaction.translate("misc:NOUNS:SERVERS:5"))}`, }), }, { diff --git a/languages/en-US/general/stats.json b/languages/en-US/general/stats.json index 2b7f941c..ae6733f4 100644 --- a/languages/en-US/general/stats.json +++ b/languages/en-US/general/stats.json @@ -9,7 +9,7 @@ "ONLINE_TITLE": "• __Online__", "ONLINE_CONTENT": "Been online for {{time}}", "MUSIC_TITLE": "• __Music__", - "MUSIC_CONTENT": "Playing music on {{count}} servers", + "MUSIC_CONTENT": "Playing music on {{count}}", "CREDITS_TITLE": ":heart: • __Additional Information__", "CREDITS_CONTENT": "__**Contributors**__:\n**`Добрый Спецназ`** - Tester, idea generator\n__**Translators**__:\n**`@[ДАННЫЕ УДАЛЕНЫ]`** - :flag_ua:", "LINKS_TITLE": "• __Links__",