permissions fix

pull/29/head
Matthew 2020-09-19 23:43:29 -04:00
parent 74a32a6134
commit 98188a4b4b
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -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]);