ban someone discord jsJavascript By Lime on Jun 21 2020
if (!message.member.hasPermission("BAN_MEMBERS")) return message.channel.send("Invalid Permissions")
let User = message.guild.member(message.mentions.users.first()) || message.guild.members.get(args[0])
if (!User) return message.channel.send("Invalid User")
if (User.hasPermission("BAN_MEMBERS")) return message.reply("Invalid Permissions")
let banReason = args.join(" ").slice(22);
if (!banReason) {
banReason = "None"
}
User.ban({reason: banReason})
Code Example |
---|
:: set in javascript |
Javascript :: javascript replace array element |
Javascript :: |
:: |
Javascript :: |
:: remove classname to node |
:: stop a function javascript |
Javascript :: |
Javascript :: formik react native |
:: |
Javascript :: javascript toisostring without milliseconds |
Javascript :: find a single element in array of objects javascript |
Javascript :: |
:: node js mongodb update by _id |
Javascript :: remove specific element from array javascript |
Javascript :: how to check if all inputs are not empty with javascript |
Javascript :: |
Javascript :: |
:: what is startof() in moment |
:: |
:: |
:: javascript if string empty |
Javascript :: |
Javascript :: javascript todataurl |
:: |
:: random letter from a name js |
:: |
Javascript :: |
Javascript :: |
:: add on click to div using jquery |