mirror of
https://github.com/SrIzan10/sern-community.git
synced 2026-05-01 11:05:19 +00:00
chore: this is where it all begins...
permalink: http://whatthecommit.com/5451d91f285b68d197227e49df10f8b8
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user