diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-21 23:35:13 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-21 23:35:13 -0400 |
commit | 44521f4560dc8b0bab055685437d8fa65a34377f (patch) | |
tree | 4750c8cf696a2489964edc409e640f6792ed92b6 /src/commands/moderation/hideCase.ts | |
parent | a8b3f2d258d6ef19aeff2c9d60d6b08a91277b2b (diff) | |
download | tanzanite-44521f4560dc8b0bab055685437d8fa65a34377f.tar.gz tanzanite-44521f4560dc8b0bab055685437d8fa65a34377f.tar.bz2 tanzanite-44521f4560dc8b0bab055685437d8fa65a34377f.zip |
misc
Diffstat (limited to 'src/commands/moderation/hideCase.ts')
-rw-r--r-- | src/commands/moderation/hideCase.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/commands/moderation/hideCase.ts b/src/commands/moderation/hideCase.ts index 38cfe31..981a8bc 100644 --- a/src/commands/moderation/hideCase.ts +++ b/src/commands/moderation/hideCase.ts @@ -20,8 +20,6 @@ export default class HideCaseCommand extends BushCommand { } } ], - clientPermissions: (m) => util.clientSendAndPermCheck(m), - userPermissions: (m) => util.userGuildPermCheck(m, ['MANAGE_MESSAGES']), slash: true, slashOptions: [ { @@ -31,6 +29,8 @@ export default class HideCaseCommand extends BushCommand { required: true } ], + clientPermissions: (m) => util.clientSendAndPermCheck(m), + userPermissions: (m) => util.userGuildPermCheck(m, ['MANAGE_MESSAGES']), channel: 'guild' }); } @@ -39,8 +39,6 @@ export default class HideCaseCommand extends BushCommand { message: BushMessage | BushSlashMessage, { case_id: caseID }: { case_id: string } ): Promise<unknown> { - if (message.author.id === '496409778822709251') - return await message.util.reply(`${util.emojis.error} This command is Bestower proof.`); const entry = await ModLog.findByPk(caseID); if (!entry || entry.pseudo) return message.util.send(`${util.emojis.error} Invalid entry.`); if (entry.guild !== message.guild!.id) |