From 2d984e8a9e73ef50f03451eacbe01f0dc9015028 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 2 Jan 2022 00:04:42 +0500 Subject: [PATCH] =?UTF-8?q?=D1=82=D0=B5=D1=81=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Owner/reload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/Owner/reload.js b/commands/Owner/reload.js index de4e14e7..efe0948f 100644 --- a/commands/Owner/reload.js +++ b/commands/Owner/reload.js @@ -17,7 +17,7 @@ class Reload extends Command { }); } - async run(message, args) { + async run(message, args, data) { const command = args[0]; const cmd = this.client.commands.get(command) || this.client.commands.get(this.client.aliases.get(command)); if (!cmd) message.error("owner/reload:NOT_FOUND", { search: command }); @@ -25,7 +25,7 @@ class Reload extends Command { await this.client.unloadCommand(cmd.conf.location, cmd.help.name); await this.client.loadCommand(cmd.conf.location, cmd.help.name); - i18next.reloadResources(); + i18next.reloadResources(data.guild.language); message.success("owner/reload:SUCCESS", { command: cmd.help.name });