From 3ce312f5aa27ce4392511ca8f25929529608227e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 29 Apr 2023 12:06:58 -0500 Subject: [PATCH] chore: Update JavaScript plugins (#89) chore: update JavaScript plugins Co-authored-by: jacoobes --- JavaScript/ownerOnly.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JavaScript/ownerOnly.js b/JavaScript/ownerOnly.js index 158f151..68b10f1 100644 --- a/JavaScript/ownerOnly.js +++ b/JavaScript/ownerOnly.js @@ -4,7 +4,7 @@ * This is OwnerOnly plugin, it allows only bot owners to run the command, like eval. * * @author @EvolutionX-10 [<@697795666373640213>] - * @version 1.0.0 + * @version 1.1.0 * @example * ```ts * import { ownerOnly } from "../plugins/ownerOnly"; @@ -21,7 +21,7 @@ import { CommandControlPlugin, controller } from "@sern/handler"; const ownerIDs = ["697795666373640213"]; //! Fill your ID export function ownerOnly() { - return CommandControlPlugin((ctx, args) => { + return CommandControlPlugin(async (ctx, args) => { if (ownerIDs.includes(ctx.user.id)) return controller.next(); //* If you want to reply when the command fails due to user not being owner, you can use following // await ctx.reply("Only owner can run it!!!");