Wie man Wörter mit diskord.js schwarzlistet
const blacklist = ['bad word 1', 'bad word 2', 'bad word 3']
blacklist.forEach(word => {
// 'word' represents an element inside of the array.
// Everytime the client is finished walking through an element, the value of 'word' changes to the next one!
if (message.content.toLowerCase().includes(word)) message.delete() && message.author.send("Keep the use of Profanity out of our server!")
})