client.on('message', message => {
const FilteredWords = ["darn", "fuck", "bitch", "pussy", " ass", "nigga", "fucker", "fuk", "shit", "nigg", "dick", "cock", "fuk", "slut", "schmuck", "piss", "bollock", "effing", "prick", "frigger", "heck", "pennis", "dick", " cock", "screw you", "dweeb", "horny", "edgey", " sex", "faggot", "fag", "cunt"]
const ProfanityEmbed = new Discord.MessageEmbed()
.setColor('#b700ff')
.setTitle("Profanity is Not Allowed in This Server")
if (FilteredWords.some(w => `${message.content.toLowerCase()}`.includes(`${w}`))) {
message.delete()
message.channel.send(ProfanityEmbed)
.then(message => {
setTimeout(function() {
message.delete()
}, 5000);
})
}
}
}