fix permissions for user ctx

This commit is contained in:
big nutty 2024-12-18 09:56:25 +00:00
parent 2b9904788a
commit a68f5ab3e7
3 changed files with 13 additions and 4 deletions

View file

@ -5,6 +5,9 @@ const { smallIconPill, highlight, smallPill, icon, timestamp } = require('#utils
const { editOrReply } = require('#utils/message');
const { renderBadges, getUserAvatar } = require('#utils/users');
const { PERMISSION_GROUPS } = require('#constants');
const { acknowledge } = require('#utils/interactions');
const { InteractionCallbackTypes, ApplicationCommandTypes, UserFlags } = require('detritus-client/lib/constants');
module.exports = {
@ -20,7 +23,7 @@ module.exports = {
],
run: async (context, args) => {
try{
await context.respond({ data: {}, type: InteractionCallbackTypes.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE })
await acknowledge(context, false, [...PERMISSION_GROUPS.baseline_slash]);
const { user, member } = args;