From 98188a4b4bf563921767a9afa1fac94d1f5cee8d Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sat, 19 Sep 2020 23:43:29 -0400 Subject: [PATCH] permissions fix --- src/commands/score.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/score.ts b/src/commands/score.ts index 2b19468..0de813e 100644 --- a/src/commands/score.ts +++ b/src/commands/score.ts @@ -154,7 +154,7 @@ export default class Score extends Command { } else { embed.setFooter(this.client.user.username, this.client.user.avatarURL); } - if (args[1] === 'hard') { + if (args[1] === 'hard' && this.checkCustomPermissions(this.client.util.resolveMember(message.author.id, this.mainGuild), 6)) { await message.channel.createMessage({ embed }); await message.channel.createMessage('***===BEGIN ADDITIONAL INFORMATION===***'); await this.client.commands.get('whois').run(message, [user.id]);