chore: this is where it all begins...

permalink: http://whatthecommit.com/5451d91f285b68d197227e49df10f8b8
This commit is contained in:
EvolutionX
2022-09-29 11:30:05 +05:30
parent 9ec036fd3a
commit 3f263ad82b

View File

@@ -3,6 +3,7 @@ import { Collection, Client } from "discord.js";
import { publish } from "../plugins/publish.js";
import { fetch } from "undici";
import type { Data } from "./plugin.js";
import { ownerOnly } from "../plugins/ownerOnly.js";
export default commandModule({
type: CommandType.Slash,
@@ -11,15 +12,10 @@ export default commandModule({
dmPermission: false,
defaultMemberPermissions: ["Administrator"],
}),
ownerOnly(["697795666373640213"]),
],
description: "refresh plugins cache",
async execute(ctx) {
if (ctx.user.id !== "697795666373640213") {
return ctx.reply({
content: `Only <@!697795666373640213> can use this!`,
ephemeral: true,
});
}
const success = await cp(ctx.client);
if (!success)
return ctx.reply({