diff --git a/commands/Owner/reload.js b/commands/Owner/reload.js index efe0948f..a377c095 100644 --- a/commands/Owner/reload.js +++ b/commands/Owner/reload.js @@ -20,12 +20,14 @@ class Reload extends Command { 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 }); + if (!cmd) return message.error("owner/reload:NOT_FOUND", { search: command }); await this.client.unloadCommand(cmd.conf.location, cmd.help.name); await this.client.loadCommand(cmd.conf.location, cmd.help.name); - i18next.reloadResources(data.guild.language); + const lang = data.guild.language || "ru-RU"; + i18next.reloadResources(lang); + message.success("owner/reload:SUCCESS", { command: cmd.help.name });