From 542a4e6f8b38d34021185ecc2cbbd1f63855b957 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Tue, 15 Nov 2022 20:31:30 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=BE=D0=BA=D0=B0=D0=BB=D0=B8=D0=B7?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20=D0=B2=D1=80=D0=B5=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=20=D0=B2=20rep,=20work=20=D0=B8=20stats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Economy/rep.js | 2 +- commands/Economy/work.js | 2 +- commands/General/stats.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/Economy/rep.js b/commands/Economy/rep.js index ee5a0c14..4d3c410d 100644 --- a/commands/Economy/rep.js +++ b/commands/Economy/rep.js @@ -37,7 +37,7 @@ class Rep extends BaseCommand { const isInCooldown = data.userData.cooldowns?.rep; if (isInCooldown) { if (isInCooldown > Date.now()) return interaction.error("economy/rep:COOLDOWN", { - time: client.convertTime(isInCooldown, true, true) + time: client.convertTime(isInCooldown, true, true, data.guildData.language) }); } diff --git a/commands/Economy/work.js b/commands/Economy/work.js index e10e2855..be1bd0cc 100644 --- a/commands/Economy/work.js +++ b/commands/Economy/work.js @@ -34,7 +34,7 @@ class Work extends BaseCommand { const isInCooldown = data.memberData.cooldowns?.work; if (isInCooldown) { if (isInCooldown > Date.now()) return interaction.error("economy/work:COOLDOWN", { - time: client.convertTime(isInCooldown, true, true) + time: client.convertTime(isInCooldown, true, true, data.guildData.language) }); } if (Date.now() > data.memberData.cooldowns.work + (24 * 60 * 60 * 1000)) data.memberData.workStreak = 0; diff --git a/commands/General/stats.js b/commands/General/stats.js index ea178e13..4b9ee4e5 100644 --- a/commands/General/stats.js +++ b/commands/General/stats.js @@ -31,7 +31,7 @@ class Stats extends BaseCommand { * @param {import("discord.js").ChatInputCommandInteraction} interaction * @param {Object} data */ - async execute(client, interaction) { + async execute(client, interaction, data) { const hiddenGuild = await client.guilds.fetch("568120814776614924"); const users = client.users.cache.size - hiddenGuild.memberCount; const servers = client.guilds.cache.size - 1; @@ -67,7 +67,7 @@ class Stats extends BaseCommand { { name: client.customEmojis.status.online + " " + interaction.translate("general/stats:ONLINE_TITLE"), value: interaction.translate("general/stats:ONLINE_CONTENT", { - time: client.convertTime(Date.now() + client.uptime, true, true) + time: client.convertTime(Date.now() + client.uptime, true, true, data.guildData.language) }) }, {