ban user via user id discord.js code example
Example: discord.js ban user
let member = message.mentions.members.first();
if(!member) return message.reply("Please mention a valid member of this server");
if(!member.bannable) return message.reply("I cannot ban this member!");
member.ban(); //.ban(reason) if you would to put in the reason through arguments