showing results for - "discord js ban user"
Abdoulaye
15 Jan 2018
1let member = message.mentions.members.first();
2if(!member) return message.reply("Please mention a valid member of this server");
3if(!member.bannable) return message.reply("I cannot ban this member!");
4
5member.ban(); //.ban(reason) if you would to put in the reason through arguments