chore: update JavaScript plugins

This commit is contained in:
EvolutionX-10
2023-09-01 16:52:00 +00:00
committed by GitHub
parent 63253dce8f
commit ecaad4b162
27 changed files with 1253 additions and 610 deletions

View File

@@ -1,6 +1,7 @@
// @ts-nocheck
/**
* @plugin
* This is perm check, it allows users to parse the permission you want and let the plugin do the rest. (check user for that perm).
*
* @author @Benzo-Fury [<@762918086349029386>]
@@ -16,6 +17,7 @@
* }
* })
* ```
* @end
*/
import { CommandControlPlugin, controller } from "@sern/handler";
export function permCheck(perm, response) {
@@ -23,7 +25,7 @@ export function permCheck(perm, response) {
if (ctx.guild === null) {
await ctx.reply("This command cannot be used here");
console.warn(
"PermCheck > A command stopped because we couldn't check a users permissions (was used in dms)"
"PermCheck > A command stopped because we couldn't check a users permissions (was used in dms)",
); //delete this line if you dont want to be notified when a command is used outside of a guild/server
return controller.stop();