From c7ffb9acb6caca299b0359bb4cc29cb492e4fe99 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 2 Oct 2020 21:48:53 -0400 Subject: [PATCH] allow technicians to pull hard report --- src/commands/score.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/score.ts b/src/commands/score.ts index 4239436..32e7cd3 100644 --- a/src/commands/score.ts +++ b/src/commands/score.ts @@ -49,7 +49,7 @@ export default class Score extends Command { return this.success(message.channel, 'Your report is now unlocked.'); } } - if (!args[0] || !this.checkCustomPermissions(this.client.util.resolveMember(message.author.id, this.mainGuild), 6)) { + if (!args[0] || !this.checkCustomPermissions(this.client.util.resolveMember(message.author.id, this.mainGuild), 4)) { user = message.author; if (!user) return this.error(message.channel, 'Member not found.'); await this.client.db.Score.updateOne({ userID: user.id }, { $addToSet: { softInquiries: { name: `${user.username} via Discord`, date: new Date() } } }); @@ -182,7 +182,7 @@ export default class Score extends Command { embed.setFooter(this.client.user.username, this.client.user.avatarURL); } // eslint-disable-next-line no-mixed-operators - if ((args[1] === 'hard' || args[1] === 'soft') && this.checkCustomPermissions(this.client.util.resolveMember(message.author.id, this.mainGuild), 6)) { + if ((args[1] === 'hard' || args[1] === 'soft') && this.checkCustomPermissions(this.client.util.resolveMember(message.author.id, this.mainGuild), 4)) { if (score.pin?.length > 0) embed.addField('PIN', score.pin.join('-'), true); if (args[1] === 'soft' && !check) {