mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14:58 +05:00
тест
This commit is contained in:
parent
cd74eb3bda
commit
2d984e8a9e
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ class Reload extends Command {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(message, args) {
|
async run(message, args, data) {
|
||||||
const command = args[0];
|
const command = args[0];
|
||||||
const cmd = this.client.commands.get(command) || this.client.commands.get(this.client.aliases.get(command));
|
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) 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.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);
|
||||||
|
|
||||||
i18next.reloadResources();
|
i18next.reloadResources(data.guild.language);
|
||||||
message.success("owner/reload:SUCCESS", {
|
message.success("owner/reload:SUCCESS", {
|
||||||
command: cmd.help.name
|
command: cmd.help.name
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue