This commit is contained in:
JonnyBro 2022-08-14 23:09:26 +05:00
parent c8ab14a59c
commit 6d609be8cb

View file

@ -38,7 +38,7 @@ class Reload extends BaseCommand {
async execute(client, interaction) { async execute(client, interaction) {
const command = interaction.options.getString("command"); const command = interaction.options.getString("command");
const cmd = client.commands.get(command); const cmd = client.commands.get(command);
if (!cmd) return interaction.error("owner/reload:NOT_FOUND", { search: command }, { ephemeral: true }); if (!cmd) return interaction.error("owner/reload:NOT_FOUND", { command }, { ephemeral: true });
await client.unloadCommand(`../commands/${cmd.category}`, cmd.command.name); await client.unloadCommand(`../commands/${cmd.category}`, cmd.command.name);
await client.loadCommand(`../commands/${cmd.category}`, cmd.command.name); await client.loadCommand(`../commands/${cmd.category}`, cmd.command.name);