This commit is contained in:
JonnyBro 2022-01-09 18:28:56 +05:00
parent e525a911e8
commit bad3f64161

View file

@ -25,7 +25,7 @@ class Reload extends Command {
await this.client.unloadCommand(cmd.conf.location, cmd.help.name); await this.client.unloadCommand(cmd.conf.location, cmd.help.name);
await this.client.loadCommand(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); i18next.reloadResources(lang);
message.success("owner/reload:SUCCESS", { message.success("owner/reload:SUCCESS", {