Skip to content

Commit

Permalink
Update message.js
Browse files Browse the repository at this point in the history
  • Loading branch information
LordAlex2015 committed Oct 11, 2020
1 parent fc7f1bc commit a249934
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions events/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = (client, message) => {
return ;
}
if(command.perms !== 'everyone') {
if(!message.member.permission.has(command.perms)) {
if(!message.member.hasPermission(command.perms)) {
return message.channel.send('You don\'t have required permission to use that command!')
}
}
Expand All @@ -35,4 +35,4 @@ module.exports = (client, message) => {
} catch (err) {
client.emit('error',err);
}
};
};

0 comments on commit a249934

Please sign in to comment.