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) }) }, {