mirror of
https://github.com/sern-handler/awesome-plugins
synced 2026-06-28 02:32:17 +00:00
feat: update perm plugin (#72)
* feat: make replies ephemeral * refactor: remove unused default from switch case
This commit is contained in:
@@ -26,6 +26,7 @@ function payload(resp?: string) {
|
||||
fetchReply: true,
|
||||
content: resp,
|
||||
allowedMentions: { repliedUser: false },
|
||||
ephemeral: true
|
||||
} as const;
|
||||
}
|
||||
|
||||
@@ -80,11 +81,6 @@ export function requirePermission(
|
||||
return controller.stop();
|
||||
}
|
||||
return controller.next();
|
||||
//*********************************************************************************************************************//
|
||||
default:
|
||||
console.warn("Perm Check >>> You didn't specify user or bot.");
|
||||
ctx.reply(payload("User or Bot was not specified."));
|
||||
return controller.stop();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user