mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 23:23:08 -04:00
fix permissions for user ctx
This commit is contained in:
parent
2b9904788a
commit
a68f5ab3e7
3 changed files with 13 additions and 4 deletions
|
@ -2,6 +2,9 @@ const { createEmbed } = require('#utils/embed');
|
|||
const { editOrReply } = require('#utils/message');
|
||||
const { getUserAvatar } = require('#utils/users');
|
||||
|
||||
const { PERMISSION_GROUPS } = require('#constants');
|
||||
const { acknowledge } = require('#utils/interactions');
|
||||
|
||||
const { InteractionCallbackTypes, ApplicationCommandTypes } = require('detritus-client/lib/constants');
|
||||
|
||||
module.exports = {
|
||||
|
@ -16,9 +19,9 @@ module.exports = {
|
|||
1
|
||||
],
|
||||
run: async (context, args) => {
|
||||
try{
|
||||
await context.respond({ data: {}, type: InteractionCallbackTypes.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE })
|
||||
await acknowledge(context, false, [...PERMISSION_GROUPS.baseline_slash]);
|
||||
|
||||
try{
|
||||
return editOrReply(context, createEmbed("default", context, {
|
||||
image: {
|
||||
url: getUserAvatar(args.user)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue