From e67b0e8b5abfda6175c3855d37387c05f8ee98d6 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Mon, 7 Feb 2022 13:03:32 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A5=D0=B0=D1=80=D0=B4=D0=BA=D0=BE=D0=B4=20?= =?UTF-8?q?=D1=8F=D0=B7=D1=8B=D0=BA=D0=BE=D0=B2=20=3D)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Owner/reload.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/Owner/reload.js b/commands/Owner/reload.js index 84d5a78f..bff55e81 100644 --- a/commands/Owner/reload.js +++ b/commands/Owner/reload.js @@ -18,7 +18,7 @@ class Reload extends Command { }); } - async run(message, args, data) { + async run(message, args) { const command = args[0]; const cmd = this.client.commands.get(command) || this.client.commands.get(this.client.aliases.get(command)); if (!cmd) return message.error("owner/reload:NOT_FOUND", { search: command }); @@ -26,8 +26,8 @@ class Reload extends Command { await this.client.unloadCommand(cmd.conf.location, cmd.help.name); await this.client.loadCommand(cmd.conf.location, cmd.help.name); - const lang = message.guild ? data.guild.language : "ru-RU"; - i18next.reloadResources(lang); + // const lang = message.guild ? data.guild.language : "ru-RU"; + i18next.reloadResources(["ru-RU", "uk-UA"]); autoUpdateDocs.update(this.client); message.success("owner/reload:SUCCESS", {