1if(command === "unban"){
2 if(!msg.member.hasPermission("BAN_MEMBERS")) {
3 return msg.channel.send(`**${msg.author.username}**, You do not have perms to unban someone`)
4 }
5
6 if(!msg.guild.me.hasPermission("BAN_MEMBERS")) {
7 return msg.channel.send(`**${msg.author.username}**, I do not have perms to unban someone`)
8 }
9
10 let userID = args[0]
11 msg.guild.fetchBans().then(bans=> {
12 if(bans.size == 0) return
13 let bUser = bans.find(b => b.user.id == userID)
14 if(!bUser) return
15 msg.guild.members.unban(bUser.user)
16})
17
18 ;}