From bad3f64161662280a667477acb919611efbb8a0c Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 9 Jan 2022 18:28:56 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Owner/reload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/Owner/reload.js b/commands/Owner/reload.js index a377c095..f762987b 100644 --- a/commands/Owner/reload.js +++ b/commands/Owner/reload.js @@ -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); - const lang = data.guild.language || "ru-RU"; + const lang = message.guild ? data.guild.language : "ru-RU"; i18next.reloadResources(lang); message.success("owner/reload:SUCCESS", {