missed a spot
This commit is contained in:
parent
e5fd71b388
commit
9ce4b470da
1 changed files with 1 additions and 2 deletions
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue