showing results for - "unban command discord js v12"
Joseph
08 Oct 2020
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  ;}
Ashley
12 Sep 2019
1message.guild.members.unban(id)
queries leading to this page
how to make a unban command discord jsunban member discord jscommand for unban on discordhow to unban someone on discord jshow to unban someone discord jsdiscord js v12 unban commandhow to unban a member in discord jsunban discord jsdiscord js unban commanunban command discord jsdiscord js copy message v12unban discord codeunbanban discord js unban discord jsunbn code v12unban user by id discord js v11unban code discored jsunban discord js v12unban with id discord jsdiscord js unban v12unban all discord jsunban people discord jscode unban command discord jsdiscord js on unbanhow to unban someone through guild and user idhow to make a simple unban command in discord jsunban discord jsban unban discord jshow to unban in discord jsunban with command discord jsdiscord js v12 how to unbandiscord js unban commandhow to unban discord jsdiscord js unban command v12unban id in discord jshow to unban discord v12unban code in discord jsdiscord js deban a userdiscord js v12 unbanhow to make a unban command discord js v12discord js unban codediscord unban command discordjshow to create unban command discord jsunban command discord js v11unban from id discord jsdiscord js v12 unban command with idsimple unban command discord js v12unban someone on discord jsunban member discordjsunban all discord jsdiscord js unbanvkick discord js v12unban command discord js v13how to make a reason for unban command discord jshow to unban someone using discord jsunban someone discord jsdiscord js unban command v13discord js unban bothow to unban on discorddiscord js unbanhow to unban user in discord js without idhow to man an unban command in discord jsunban command discord js v12unban command discord js 12how to make unban command discord jshow to unban from discordunban command in discord jshow to unban in discord jshow to unban someone in discord jsunban ocmmand discord js v12discord js v12 un ban commandhow to make an unban command discord js v13discord js unban memberunban code v12 discordjsdiscord js ban v12unban user discord js v12snipe command discord js v12discord js v12 unban commandunban member discord jsbasic unban command discord js v12how to ban and unban user in discord jshow to unban a member discordjsunban command discord jsunban member log discord jsmessage guild members unban 28bannedmember 2creason 29unban command discord js v13command unban discord jsmember unban 28 29 discord jsdiscord ban v12 codehow to unban user discord jsdiscord ban unban codediscord js unban wont workdiscord js unban commandkick and ban 12v discord jsunban code discord jsdiscord js unban command githubmute command discord js v12discord js validate unban user idhow to unban a user discord jsunban command discord js v12