discord js how to kick a user

Solutions on MaxInterview for discord js how to kick a user by the best coders in the world

showing results for - "discord js how to kick a user"
Alessandra
24 Jan 2018
1let member = message.mentions.members.first();
2if(!member) return message.reply("Please mention a valid member of this server");
3if(!member.kickable) return message.reply("I cannot kick this member!");
4
5member.kick(); //.kick(reason) if you would to put in the reason through arguments
Giulia
28 Mar 2018
1let member = message.mentions.members.first();
2if(!member) message.reply("Please mention a valid member of this server") return;
3if(!member.kickable) message.reply("This member is not kickable") return;
4// Now check if the user has the Kick Members Permission
5if(!member.hasPermission('KICK_MEMBERS') {
6   message.reply("You Can't kick anyone");
7	return;
8} else {
9 // Now If they do kick the user
10  member.kick();
11}
12// If this works please upvote!
queries leading to this page
discord js cannot kick userskick command discord jskick discord jskick member with discord jskick command for users with kick members discord jskick command discord js guidekick user from discord server discord jshow to kick member from voice channel discord jsdiscord js kick membersdiscord js kick commanddiscordjs kick user with iddiscord js kickablediscord bot js kick userhow to kick a user with a reason discord jskick all users discord jsdiscordjs kick commanddiscord js kick memberdiscord js how to kick a usermember kick discord jshow to kick discord jshow to kick members using id discord jsdiscord js kick userediscord js kick logkick command for users with kick members discord jskick member discord jskick commands discord jshow to kick a member discord jsdiscordjs kick memberdiscord js kick specific userbot cant kick user discord jshow to kick members discord jsdiscord js kick cmdkick someone from discord jskick someone in discord jsdiscord js kickdiscord js user kickmember kick 28reason 29 discord jsdiscord js how to kick certain userkick user discord jsbot can 27t kick user discord jsdiscord js kick command with permissionsdiscord js kick reasondiscord js kick commanddiscord js kick command with reasondiscordjs canjot kick memberdiscord js kick user from idkick member discordjsbot kick user from server discord jsdiscord js kick by iddiscord js kick member from voicediscord js kickdsicord bot kick js user by iddiscord js kick memberskick in discord jskick discord jskick members discord jskick command with id discord jsdiscord js kick membershow to kick someone in discord jsdiscord net kick userkick user discord jskick member discord jskick command for discord jsdiscord kick command using id discord jskick someone discord jshow to kick any user discord jsdiscord js cant kick usersdiscord js kick userdiscord js kick user by iddiscord js kick yourselfhow to kick a member using id discord jskick discord js by id discord js how to kick a user