diff --git a/src/commands/refresh.ts b/src/commands/refresh.ts index 81b75cc..1433ae1 100644 --- a/src/commands/refresh.ts +++ b/src/commands/refresh.ts @@ -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({