diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-30 16:48:07 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-30 16:48:07 -0400 |
commit | 42d2e2bf01b5debd4ecf605297f925ad5da7deb3 (patch) | |
tree | daf6678542cd8735f9930086f7a1e76ae6884e4e /src/commands/moderation/hideCase.ts | |
parent | 4ad90b19851a0853287c45d326a28be535b1607f (diff) | |
download | tanzanite-42d2e2bf01b5debd4ecf605297f925ad5da7deb3.tar.gz tanzanite-42d2e2bf01b5debd4ecf605297f925ad5da7deb3.tar.bz2 tanzanite-42d2e2bf01b5debd4ecf605297f925ad5da7deb3.zip |
I did this 2 weeks ago idk what I did
Diffstat (limited to 'src/commands/moderation/hideCase.ts')
-rw-r--r-- | src/commands/moderation/hideCase.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/commands/moderation/hideCase.ts b/src/commands/moderation/hideCase.ts index 2529531..cf7b4de 100644 --- a/src/commands/moderation/hideCase.ts +++ b/src/commands/moderation/hideCase.ts @@ -20,7 +20,10 @@ export default class HideCaseCommand extends BushCommand { } } ], - userPermissions: ['MANAGE_MESSAGES'], + userPermissions: (message) => { + return message.member?.permissions.has('MANAGE_MESSAGES') ? null : ['MANAGE_MESSAGES']; + }, + clientPermissions: ['SEND_MESSAGES'], slash: true, slashOptions: [ { |