- properly handle permissions for user commands

- add central permission group constant
This commit is contained in:
bignutty 2024-12-08 14:49:57 +01:00
parent dcb823a0a1
commit d2aeecf70d
100 changed files with 245 additions and 942 deletions

View file

@ -7,6 +7,7 @@ const { codeblock } = require('#utils/markdown');
const { STATICS } = require('#utils/statics');
const { ApplicationCommandTypes, MessageFlags } = require("detritus-client/lib/constants");
const { PERMISSION_GROUPS } = require('#constants');
;
module.exports = {
@ -21,7 +22,7 @@ module.exports = {
1
],
run: async (context, args) => {
await acknowledge(context);
await acknowledge(context, false, [...PERMISSION_GROUPS.baseline_slash]);
try {
const { message } = args;