Skip to content

Commit

Permalink
Fixed ban user command
Browse files Browse the repository at this point in the history
  • Loading branch information
TannerGabriel committed Nov 6, 2019
1 parent 35ae8b3 commit 400357b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/ban.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
return message.reply('You need to mention the member you want to ban him');
}

if (!member.banable) {
if (!message.member.hasPermission("MANAGE\_MEMBERS")) {
return message.reply('I can\'t ban this user.');
}

Expand Down

0 comments on commit 400357b

Please sign in to comment.