📅  最后修改于: 2022-03-11 15:03:32.898000             🧑  作者: Mango
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