kick members node js

Solutions on MaxInterview for kick members node js by the best coders in the world

showing results for - "kick members node js"
Ingrid
16 Jan 2020
1let kUser = message.guild.member(message.mentions.users.first() || message.guild.members.get(args[0]));
2if(!kUser) return message.channel.send("Please mention a user to kick!")
3let kReason = args.join(" ").slice(22);
4if(!kReason) return message.channel.send ("Please specify some reasons for the kick")
5message.guild.member(kUser).kick(kReason);
6message.channel.send(`${kUser} has been kicked from the server`);
7