missed a spot

This commit is contained in:
Essem 2022-10-11 10:51:56 -05:00
parent e5fd71b388
commit 9ce4b470da
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

View file

@ -1,6 +1,5 @@
import Command from "../../classes/command.js"; import Command from "../../classes/command.js";
import { load } from "../../utils/handler.js"; import { load } from "../../utils/handler.js";
import { checkStatus } from "../../utils/soundplayer.js";
import { paths } from "../../utils/collections.js"; import { paths } from "../../utils/collections.js";
class ReloadCommand extends Command { class ReloadCommand extends Command {
@ -12,7 +11,7 @@ class ReloadCommand extends Command {
await this.acknowledge(); await this.acknowledge();
const path = paths.get(commandName); const path = paths.get(commandName);
if (!path) return "I couldn't find that command!"; if (!path) return "I couldn't find that command!";
const result = await load(this.client, path, await checkStatus(), true); const result = await load(this.client, path, true);
if (result !== commandName) return "I couldn't reload that command!"; if (result !== commandName) return "I couldn't reload that command!";
if (process.env.PM2_USAGE) { if (process.env.PM2_USAGE) {
process.send({ process.send({