|
|
@ -449,8 +449,8 @@ async function addRole(message) { |
|
|
|
} |
|
|
|
|
|
|
|
async function ban(message) { |
|
|
|
if (!message.member.hasPermission('ADMINISTRATOR')) { |
|
|
|
message.reply('you do not have admin privileges!') |
|
|
|
if (!message.member.hasPermission('BAN_MEMBERS')) { |
|
|
|
message.reply('you do not have ban permissions!') |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
@ -484,6 +484,10 @@ async function ban(message) { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if (member.roles.highest.comparePositionTo(message.member.roles.highest) > 0) { |
|
|
|
message.reply("this member is above you!") |
|
|
|
} |
|
|
|
|
|
|
|
let verificationEmbed = new Discord.MessageEmbed() |
|
|
|
.setTitle(`Are you sure you would like to ban \`${member.user.tag}\`?`) |
|
|
|
.setAuthor(member.user.tag, member.user.avatarURL()) |
|
|
|